org.springframework.security.config.annotation.authentication.configurers.ldap
Class LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer

java.lang.Object
  extended by org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
Enclosing class:
LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuilder<B>>

public final class LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
extends Object

Sets up Password based comparison


Method Summary
 LdapAuthenticationProviderConfigurer<B> and()
          Allows obtaining a reference to the LdapAuthenticationProviderConfigurer for further customizations
 LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordAttribute(String passwordAttribute)
          The attribute in the directory which contains the user password.
 LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordEncoder(PasswordEncoder passwordEncoder)
          Allows specifying the PasswordEncoder to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

passwordEncoder

public LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying the PasswordEncoder to use. The default is PlaintextPasswordEncoder.

Parameters:
passwordEncoder - the PasswordEncoder to use
Returns:
the PasswordEncoder to use

passwordAttribute

public LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordAttribute(String passwordAttribute)
The attribute in the directory which contains the user password. Defaults to "userPassword".

Parameters:
passwordAttribute - the attribute in the directory which contains the user password
Returns:
the LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer for further customizations

and

public LdapAuthenticationProviderConfigurer<B> and()
Allows obtaining a reference to the LdapAuthenticationProviderConfigurer for further customizations

Returns:
attribute in the directory which contains the user password