Class PreAuthenticatedAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class PreAuthenticatedAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication implementation for
pre-authenticated authentication.- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials) Constructor used for an authentication request.PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials, Collection<? extends org.springframework.security.core.GrantedAuthority> anAuthorities) Constructor used for an authentication response. -
Method Summary
Modifier and TypeMethodDescriptionGet the credentialsGet the principalMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
PreAuthenticatedAuthenticationToken
Constructor used for an authentication request. TheAuthentication.isAuthenticated()will returnfalse.- Parameters:
aPrincipal- The pre-authenticated principalaCredentials- The pre-authenticated credentials
-
PreAuthenticatedAuthenticationToken
public PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials, Collection<? extends org.springframework.security.core.GrantedAuthority> anAuthorities) Constructor used for an authentication response. TheAuthentication.isAuthenticated()will returntrue.- Parameters:
aPrincipal- The authenticated principalanAuthorities- The granted authorities
-
-
Method Details
-
getCredentials
Get the credentials -
getPrincipal
Get the principal
-