public class PrincipalAcegiUserToken extends AbstractAdapterAuthenticationToken implements Principal
Principal compatible Authentication object.| Constructor and Description |
|---|
PrincipalAcegiUserToken(String key,
String username,
String password,
GrantedAuthority[] authorities,
Object principal) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials()
The credentials that prove the principal is correct.
|
String |
getName() |
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 PrincipalAcegiUserToken(String key, String username, String password, GrantedAuthority[] authorities, Object principal)
public Object getCredentials()
AuthenticationAuthenticationManager. Callers are expected to populate the credentials.getCredentials in interface AuthenticationPrincipalpublic String getName()
getName in interface PrincipalgetName in class AbstractAuthenticationTokenpublic Object getPrincipal()
AuthenticationgetPrincipal in interface AuthenticationPrincipal being authenticatedCopyright © 2016. All rights reserved.