org.apache.jetspeed.security.spi.impl.ldap
Interface LdapUserCredentialDao

All Superinterfaces:
LdapReadOnlyPrincipalDao
All Known Implementing Classes:
LdapUserCredentialDaoImpl

public interface LdapUserCredentialDao
extends LdapReadOnlyPrincipalDao

User credential dao.

Author:
Mike Long

Method Summary
 boolean authenticate(String uid, String password)
           Looks up the user by the UID attribute.
 void changePassword(String uid, String password)
           Updates the password for the specified user.
 char[] getPassword(String uid)
           
 
Methods inherited from interface org.apache.jetspeed.security.spi.impl.ldap.LdapReadOnlyPrincipalDao
lookupByUid
 

Method Detail

changePassword

void changePassword(String uid,
                    String password)
                    throws org.apache.jetspeed.security.SecurityException

Updates the password for the specified user.

Parameters:
uid - The uid.
password - The password.
Throws:
org.apache.jetspeed.security.SecurityException - A SecurityException.

authenticate

boolean authenticate(String uid,
                     String password)
                     throws org.apache.jetspeed.security.SecurityException

Looks up the user by the UID attribute. If this lookup succeeds, this method then attempts to authenticate the user using the password, throwing an AuthenticationException if the password is incorrect or an OperationNotSupportedException if the password is empty.

Parameters:
uid - The uid.
password - The password.
Throws:
org.apache.jetspeed.security.SecurityException - A SecurityException.

getPassword

char[] getPassword(String uid)
                   throws org.apache.jetspeed.security.SecurityException
Parameters:
uid - The uid.
Returns:
The password.
Throws:
org.apache.jetspeed.security.SecurityException - A SecurityException.@throws SecurityException


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.