Class LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
java.lang.Object
org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.PasswordCompareConfigurer
- Enclosing class:
- LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuilder<B>>
Sets up Password based comparison
-
Method Summary
Modifier and TypeMethodDescriptionand()
Allows obtaining a reference to theLdapAuthenticationProviderConfigurer
for further customizationspasswordAttribute
(String passwordAttribute) The attribute in the directory which contains the user password.passwordEncoder
(PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoder
to use.
-
Method Details
-
passwordEncoder
public LdapAuthenticationProviderConfigurer<B>.PasswordCompareConfigurer passwordEncoder(PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoder
to use. The default isNoOpPasswordEncoder
.- Parameters:
passwordEncoder
- thePasswordEncoder
to use- Returns:
- the
LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuilder<B>>.PasswordCompareConfigurer
for further customizations
-
passwordAttribute
public LdapAuthenticationProviderConfigurer<B>.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<B extends ProviderManagerBuilder<B>>.PasswordCompareConfigurer
for further customizations
-
and
Allows obtaining a reference to theLdapAuthenticationProviderConfigurer
for further customizations- Returns:
- attribute in the directory which contains the user password
-