Class PreAuthenticatedAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken
- All Implemented Interfaces:
- Serializable,- Principal,- Authentication,- CredentialsContainer
Authentication implementation for
 pre-authenticated authentication.- Since:
- 2.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionPreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials) Constructor used for an authentication request.PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials, Collection<? extends GrantedAuthority> anAuthorities) Constructor used for an authentication response.
- 
Method SummaryModifier and TypeMethodDescriptionGet the credentialsGet the principalMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationTokenequals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
- 
Constructor Details- 
PreAuthenticatedAuthenticationTokenConstructor used for an authentication request. TheAuthentication.isAuthenticated()will returnfalse.- Parameters:
- aPrincipal- The pre-authenticated principal
- aCredentials- The pre-authenticated credentials
 
- 
PreAuthenticatedAuthenticationTokenpublic PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials, Collection<? extends GrantedAuthority> anAuthorities) Constructor used for an authentication response. TheAuthentication.isAuthenticated()will returntrue.- Parameters:
- aPrincipal- The authenticated principal
- anAuthorities- The granted authorities
 
 
- 
- 
Method Details- 
getCredentialsGet the credentials- Returns:
- the credentials that prove the identity of the Principal
 
- 
getPrincipalGet the principal- Returns:
- the Principalbeing authenticated or the authenticated principal after authentication.
 
 
-