public class PreAuthenticatedAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication implementation for
pre-authenticated authentication.| Constructor and Description |
|---|
PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal,
java.lang.Object aCredentials)
Constructor used for an authentication request.
|
PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal,
java.lang.Object aCredentials,
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> anAuthorities)
Constructor used for an authentication response.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCredentials()
Get the credentials
|
java.lang.Object |
getPrincipal()
Get the principal
|
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal,
java.lang.Object aCredentials)
Authentication.isAuthenticated() will
return false.aPrincipal - The pre-authenticated principalaCredentials - The pre-authenticated credentialspublic PreAuthenticatedAuthenticationToken(java.lang.Object aPrincipal,
java.lang.Object aCredentials,
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> anAuthorities)
Authentication.isAuthenticated() will
return true.aPrincipal - The authenticated principalanAuthorities - The granted authorities