public final class PasswordComparisonAuthenticator extends AbstractLdapAuthenticator
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.
messages| Constructor and Description |
|---|
PasswordComparisonAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ldap.core.DirContextOperations |
authenticate(Authentication authentication)
Authenticates as a user and obtains additional user information from the directory.
|
void |
setPasswordAttributeName(java.lang.String passwordAttribute) |
void |
setPasswordEncoder(PasswordEncoder passwordEncoder) |
afterPropertiesSet, getContextSource, getUserAttributes, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDnPatterns, setUserSearchpublic PasswordComparisonAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
public org.springframework.ldap.core.DirContextOperations authenticate(Authentication authentication)
LdapAuthenticatorpublic void setPasswordAttributeName(java.lang.String passwordAttribute)
public void setPasswordEncoder(PasswordEncoder passwordEncoder)