Class LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
-
- Enclosing class:
- LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuilder<B>>
public final class LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer extends java.lang.ObjectSets up Password based comparison
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapAuthenticationProviderConfigurer<B>and()Allows obtaining a reference to theLdapAuthenticationProviderConfigurerfor further customizationsLdapAuthenticationProviderConfigurer.PasswordCompareConfigurerpasswordAttribute(java.lang.String passwordAttribute)The attribute in the directory which contains the user password.LdapAuthenticationProviderConfigurer.PasswordCompareConfigurerpasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)Allows specifying thePasswordEncoderto use.
-
-
-
Method Detail
-
passwordEncoder
public LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
Allows specifying thePasswordEncoderto use. The default isNoOpPasswordEncoder.- Parameters:
passwordEncoder- thePasswordEncoderto use- Returns:
- the
LdapAuthenticationProviderConfigurer.PasswordCompareConfigurerfor further customizations
-
passwordAttribute
public LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordAttribute(java.lang.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.PasswordCompareConfigurerfor further customizations
-
and
public LdapAuthenticationProviderConfigurer<B> and()
Allows obtaining a reference to theLdapAuthenticationProviderConfigurerfor further customizations- Returns:
- attribute in the directory which contains the user password
-
-