public Authentication doAuthenticate(final DmfTenantSecurityToken securityToken) {
        resolveTenant(securityToken);
        PreAuthenticatedAuthenticationToken authentication = new PreAuthenticatedAuthenticationToken(null, null);
        for (final PreAuthenticationFilter filter : filterChain) {
            final PreAuthenticatedAuthenticationToken authenticationRest = createAuthentication(filter, securityToken);
            if (authenticationRest != null) {
                authentication = authenticationRest;
                authentication.setDetails(new TenantAwareAuthenticationDetails(securityToken.getTenant(), true));
                break;
            }
        }
        return preAuthenticatedAuthenticationProvider.authenticate(authentication);

    }
public Authentication doAuthenticate ( final DmfTenantSecurityToken securityToken ) { resolveTenant ( securityToken ) ; PreAuthenticatedAuthenticationToken authentication = new PreAuthenticatedAuthenticationToken ( null , null ) ; for ( final PreAuthenticationFilter filter : filterChain ) { final PreAuthenticatedAuthenticationToken authenticationRest = createAuthentication ( filter , securityToken ) ; if ( authenticationRest != null ) { authentication = authenticationRest ; authentication . setDetails ( new TenantAwareAuthenticationDetails ( securityToken . getTenant ( ) , true ) ) ; break ; } } return preAuthenticatedAuthenticationProvider . authenticate ( authentication ) ; }
Performs authentication with the security token.

@param securityToken
the authentication request object
@return the authentication object