Search in sources :

Example 1 with LdapShaPasswordEncoder

use of org.springframework.security.authentication.encoding.LdapShaPasswordEncoder in project spring-security by spring-projects.

the class PasswordComparisonAuthenticatorTests method testLdapCompareSucceedsWithShaEncodedPassword.

@Test
public void testLdapCompareSucceedsWithShaEncodedPassword() {
    // Don't retrieve the password
    authenticator.setUserAttributes(new String[] { "uid" });
    authenticator.setPasswordEncoder(new LdapShaPasswordEncoder());
    authenticator.authenticate(ben);
}
Also used : LdapShaPasswordEncoder(org.springframework.security.authentication.encoding.LdapShaPasswordEncoder)

Aggregations

LdapShaPasswordEncoder (org.springframework.security.authentication.encoding.LdapShaPasswordEncoder)1