use of org.springframework.ldap.core.support.DigestMd5DirContextAuthenticationStrategy in project hub-alert by blackducksoftware.
the class LdapManager method createAuthenticationStrategy.
private DirContextAuthenticationStrategy createAuthenticationStrategy(FieldUtility configuration) {
String authenticationType = configuration.getStringOrEmpty(AuthenticationDescriptor.KEY_LDAP_AUTHENTICATION_TYPE);
DirContextAuthenticationStrategy strategy = null;
if (StringUtils.isNotBlank(authenticationType)) {
if ("digest".equalsIgnoreCase(authenticationType)) {
strategy = new DigestMd5DirContextAuthenticationStrategy();
} else if ("simple".equalsIgnoreCase(authenticationType)) {
strategy = new SimpleDirContextAuthenticationStrategy();
}
}
return strategy;
}
Aggregations