org.springframework.security.providers.ldap.authenticator
Class PasswordComparisonAuthenticator
java.lang.Object
org.springframework.security.providers.ldap.authenticator.AbstractLdapAuthenticator
org.springframework.security.providers.ldap.authenticator.PasswordComparisonAuthenticator
- All Implemented Interfaces:
- InitializingBean, MessageSourceAware, LdapAuthenticator
public final class PasswordComparisonAuthenticator
- extends AbstractLdapAuthenticator
An LdapAuthenticator
which compares the login
password with the value stored in the directory using a remote LDAP "compare" operation.
If passwords are stored in digest form in the repository, then a suitable PasswordEncoder
implementation must be supplied. By default, passwords are encoded using the LdapShaPasswordEncoder
.
- Version:
- $Id$
- Author:
- Luke Taylor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordComparisonAuthenticator
public PasswordComparisonAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
authenticate
public org.springframework.ldap.core.DirContextOperations authenticate(Authentication authentication)
- Description copied from interface:
LdapAuthenticator
- Authenticates as a user and obtains additional user information from the directory.
- Returns:
- the details of the successfully authenticated user.
setPasswordAttributeName
public void setPasswordAttributeName(String passwordAttribute)
setPasswordEncoder
public void setPasswordEncoder(PasswordEncoder passwordEncoder)
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.