Example usage for org.springframework.security.ldap.authentication LdapAuthenticationProvider supports

List of usage examples for org.springframework.security.ldap.authentication LdapAuthenticationProvider supports

Introduction

In this page you can find the example usage for org.springframework.security.ldap.authentication LdapAuthenticationProvider supports.

Prototype

public boolean supports(Class<?> authentication) 

Source Link

Usage

From source file:org.artifactory.security.ldap.ArtifactoryLdapAuthenticationProvider.java

@Override
public boolean supports(Class<?> authentication) {
    if (centralConfig.getDescriptor().getSecurity().isLdapEnabled()) {
        for (LdapAuthenticationProvider ldapAuthenticationProvider : getLdapAuthenticationProviders()
                .values()) {/*from w w  w.  j a va  2  s.c om*/
            if (ldapAuthenticationProvider.supports(authentication)) {
                return true;
            }
        }
    }
    return false;
}