public class PrincipalSpringSecurityUserToken extends AbstractAdapterAuthenticationToken implements java.security.Principal
Principal compatible Authentication object.| Constructor and Description |
|---|
PrincipalSpringSecurityUserToken(java.lang.String key,
java.lang.String username,
java.lang.String password,
GrantedAuthority[] authorities,
java.lang.Object principal) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCredentials()
The credentials that prove the principal is correct.
|
java.lang.String |
getName() |
java.lang.Object |
getPrincipal()
The identity of the principal being authenticated.
|
equals, getKeyHash, isAuthenticated, isUserInRole, setAuthenticatedgetAuthorities, getDetails, hashCode, setDetails, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAuthorities, getDetailspublic PrincipalSpringSecurityUserToken(java.lang.String key,
java.lang.String username,
java.lang.String password,
GrantedAuthority[] authorities,
java.lang.Object principal)
public java.lang.Object getCredentials()
AuthenticationAuthenticationManager. Callers are expected to populate the credentials.getCredentials in interface AuthenticationPrincipalpublic java.lang.String getName()
getName in interface java.security.PrincipalgetName in class AbstractAuthenticationTokenpublic java.lang.Object getPrincipal()
AuthenticationgetPrincipal in interface AuthenticationPrincipal being authenticated