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

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