Search in sources :

Example 1 with DigestMd5DirContextAuthenticationStrategy

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;
}
Also used : DigestMd5DirContextAuthenticationStrategy(org.springframework.ldap.core.support.DigestMd5DirContextAuthenticationStrategy) DirContextAuthenticationStrategy(org.springframework.ldap.core.support.DirContextAuthenticationStrategy) SimpleDirContextAuthenticationStrategy(org.springframework.ldap.core.support.SimpleDirContextAuthenticationStrategy) DigestMd5DirContextAuthenticationStrategy(org.springframework.ldap.core.support.DigestMd5DirContextAuthenticationStrategy) SimpleDirContextAuthenticationStrategy(org.springframework.ldap.core.support.SimpleDirContextAuthenticationStrategy)

Aggregations

DigestMd5DirContextAuthenticationStrategy (org.springframework.ldap.core.support.DigestMd5DirContextAuthenticationStrategy)1 DirContextAuthenticationStrategy (org.springframework.ldap.core.support.DirContextAuthenticationStrategy)1 SimpleDirContextAuthenticationStrategy (org.springframework.ldap.core.support.SimpleDirContextAuthenticationStrategy)1