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 .