public final class

PasswordComparisonAuthenticator

extends AbstractLdapAuthenticator
java.lang.Object
   ↳ org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
     ↳ org.springframework.security.ldap.authentication.PasswordComparisonAuthenticator

Class Overview

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. Note that compare operations will not work if salted-SHA (SSHA) passwords are used, as it is not possible to know the salt value which is a random byte sequence generated by the directory.

Summary

[Expand]
Inherited Fields
From class org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
Public Constructors
PasswordComparisonAuthenticator(BaseLdapPathContextSource contextSource)
Public Methods
DirContextOperations authenticate(Authentication authentication)
void setPasswordAttributeName(String passwordAttribute)
void setPasswordEncoder(PasswordEncoder passwordEncoder)
[Expand]
Inherited Methods
From class org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.MessageSourceAware
From interface org.springframework.security.ldap.authentication.LdapAuthenticator

Public Constructors

public PasswordComparisonAuthenticator (BaseLdapPathContextSource contextSource)

Public Methods

public DirContextOperations authenticate (Authentication authentication)

public void setPasswordAttributeName (String passwordAttribute)

public void setPasswordEncoder (PasswordEncoder passwordEncoder)