src/main/java/org/nrg/xnat/auth/ldap/provider/XnatLdapAuthenticationProvider.java
/**
     * Indicates whether this provider supports the specified authentication token. The LDAP authentication provider
     * supports tokens that implement or extend the {@link XnatLdapUsernamePasswordAuthenticationToken} class but this
     * method may also {@link XnatAuthenticationToken#getProviderId() token's provider ID} to ensure that it matches
     * the {@link XnatAuthenticationProvider#getProviderId() provider implementation and configurations' ID}.
     *
     * @param authentication The authentication token to test.
     *
     * @return Returns <b>true</b> if this provider supports the submitted token.
     */
Indicates whether this provider supports the specified authentication token. The LDAP authentication provider
supports tokens that implement or extend the  XnatLdapUsernamePasswordAuthenticationToken class but this
method may also  XnatAuthenticationToken#getProviderId() token's provider ID to ensure that it matches
the  XnatAuthenticationProvider#getProviderId() provider implementation and configurations' ID.

@param authentication The authentication token to test.

@return Returns true if this provider supports the submitted token.
Indicates whether this provider supports the specified authentication token . The LDAP authentication provider supports tokens that implement or extend the XnatLdapUsernamePasswordAuthenticationToken class but this method may also XnatAuthenticationToken#getProviderId () token ' s provider ID to ensure that it matches the XnatAuthenticationProvider#getProviderId () provider implementation and configurations ' ID . @param authentication The authentication token to test . @return Returns true if this provider supports the submitted token .
@Override
    public boolean supports(final Authentication authentication) {
        return supports(authentication.getClass()) &&
               authentication instanceof XnatLdapUsernamePasswordAuthenticationToken &&
               StringUtils.equals(getProviderId(), ((XnatLdapUsernamePasswordAuthenticationToken) authentication).getProviderId());
    }
@ Override public boolean supports ( final Authentication authentication ) { return supports ( authentication . getClass ( ) ) && authentication instanceof XnatLdapUsernamePasswordAuthenticationToken && StringUtils . equals ( getProviderId ( ) , ( ( XnatLdapUsernamePasswordAuthenticationToken ) authentication ) . getProviderId ( ) ) ; }
Indicates whether this provider supports the specified authentication token.
Indicates whether this provider supports the specified authentication token .