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 theLdapAuthenticationProviderConfigurerfor further customizationspasswordAttribute(String passwordAttribute) The attribute in the directory which contains the user password.passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoderto use.
-
Method Details
-
passwordEncoder
public LdapAuthenticationProviderConfigurer<B>.PasswordCompareConfigurer passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoderto use. The default isNoOpPasswordEncoder.- Parameters:
passwordEncoder- thePasswordEncoderto use- Returns:
- the
LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuilder<B>>.PasswordCompareConfigurerfor 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>>.PasswordCompareConfigurerfor further customizations
-
and
Allows obtaining a reference to theLdapAuthenticationProviderConfigurerfor further customizations- Returns:
- attribute in the directory which contains the user password
-