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);
}
Aggregations