List of usage examples for org.springframework.security.ldap.authentication PasswordComparisonAuthenticator setPasswordEncoder
public void setPasswordEncoder(PasswordEncoder passwordEncoder)
From source file:io.gravitee.management.idp.ldap.authentication.LdapAuthenticationProviderConfigurer.java
/** * Creates {@link PasswordComparisonAuthenticator} * * @param contextSource the {@link BaseLdapPathContextSource} to use * @return/*from w ww . j a va 2 s. c om*/ */ private PasswordComparisonAuthenticator createPasswordCompareAuthenticator( BaseLdapPathContextSource contextSource) { PasswordComparisonAuthenticator ldapAuthenticator = new PasswordComparisonAuthenticator(contextSource); if (passwordAttribute != null) { ldapAuthenticator.setPasswordAttributeName(passwordAttribute); } ldapAuthenticator.setPasswordEncoder(passwordEncoder); return ldapAuthenticator; }