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.Object
Sets 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 theLdapAuthenticationProviderConfigurer
for further customizationsLdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
passwordAttribute(java.lang.String passwordAttribute)
The attribute in the directory which contains the user password.LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying thePasswordEncoder
to use.
-
-
-
Method Detail
-
passwordEncoder
public LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying thePasswordEncoder
to use. The default isNoOpPasswordEncoder
.- Parameters:
passwordEncoder
- thePasswordEncoder
to use- Returns:
- the
LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
for 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.PasswordCompareConfigurer
for further customizations
-
and
public LdapAuthenticationProviderConfigurer<B> and()
Allows obtaining a reference to theLdapAuthenticationProviderConfigurer
for further customizations- Returns:
- attribute in the directory which contains the user password
-
-