|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
org.apache.jetspeed.security.spi.impl.ldap.LdapUserCredentialDaoImpl
public class LdapUserCredentialDaoImpl
LdapUserCredentialDao
Field Summary |
---|
Fields inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao |
---|
ctx |
Constructor Summary | |
---|---|
LdapUserCredentialDaoImpl()
Default constructor. |
|
LdapUserCredentialDaoImpl(LdapBindingConfig ldapConfig)
Initializes the dao. |
Method Summary | |
---|---|
boolean |
authenticate(java.lang.String uid,
java.lang.String password)
Looks up the user by the UID attribute. |
void |
changePassword(java.lang.String uid,
java.lang.String password)
Updates the password for the specified user. |
protected java.lang.String[] |
getAttributes()
|
protected java.lang.String |
getEntryPrefix()
A template method that returns the LDAP entry prefix of the concrete DAO. |
protected java.lang.String[] |
getObjectClasses()
|
char[] |
getPassword(java.lang.String uid)
|
protected java.lang.String |
getSearchDomain()
The domain in wich to perform a search |
protected java.lang.String |
getSearchSuffix()
A template method that returns the LDAP entry prefix of the concrete DAO. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.security.spi.impl.ldap.LdapReadOnlyPrincipalDao |
---|
lookupByUid |
Constructor Detail |
---|
public LdapUserCredentialDaoImpl() throws SecurityException
Default constructor.
SecurityException
- A SecurityException
.public LdapUserCredentialDaoImpl(LdapBindingConfig ldapConfig) throws SecurityException
Initializes the dao.
ldapConfig
- Holds the ldap binding configuration.
SecurityException
- A SecurityException
.Method Detail |
---|
public void changePassword(java.lang.String uid, java.lang.String password) throws SecurityException
Updates the password for the specified user.
changePassword
in interface LdapUserCredentialDao
uid
- The uid.password
- The password.
SecurityException
- A SecurityException
.public boolean authenticate(java.lang.String uid, java.lang.String password) throws 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.
authenticate
in interface LdapUserCredentialDao
uid
- The uid.password
- The password.
SecurityException
- Throws a SecurityException
.public char[] getPassword(java.lang.String uid) throws SecurityException
getPassword
in interface LdapUserCredentialDao
uid
- The uid.
SecurityException
- A SecurityException
.@throws SecurityExceptionLdapUserCredentialDao.getPassword(java.lang.String)
protected java.lang.String getEntryPrefix()
AbstractLdapDao
A template method that returns the LDAP entry prefix of the concrete DAO.
TODO : this should be in spring config
getEntryPrefix
in class AbstractLdapDao
protected java.lang.String getSearchSuffix()
AbstractLdapDao
A template method that returns the LDAP entry prefix of the concrete DAO.
TODO : this should be in spring config
getSearchSuffix
in class AbstractLdapDao
protected java.lang.String getSearchDomain()
AbstractLdapDao
The domain in wich to perform a search
TODO : this should be in spring config
getSearchDomain
in class AbstractLdapDao
protected java.lang.String[] getObjectClasses()
getObjectClasses
in class AbstractLdapDao
protected java.lang.String[] getAttributes()
getAttributes
in class AbstractLdapDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |