@Nullable
    @Override
    protected AuthenticationInfo queryForAuthenticationInfo(
            AuthenticationToken token, LdapContextFactory ldapContextFactory) throws NamingException {
        try {
            return queryForAuthenticationInfo0(token, ldapContextFactory);
        } catch (ServiceUnavailableException e) {
            // It might be a temporary failure, so try again.
            return queryForAuthenticationInfo0(token, ldapContextFactory);
        }
    }
@ Nullable @ Override protected AuthenticationInfo queryForAuthenticationInfo ( AuthenticationToken token , LdapContextFactory ldapContextFactory ) throws NamingException { try { return queryForAuthenticationInfo0 ( token , ldapContextFactory ) ; } catch ( ServiceUnavailableException e ) { return queryForAuthenticationInfo0 ( token , ldapContextFactory ) ; } }
Builds an {@link AuthenticationInfo} object by querying the active directory LDAP context for the
specified username.