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, setAuthenticated
getAuthorities, getDetails, hashCode, setDetails, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAuthorities, getDetails
public PrincipalAcegiUserToken(String key, String username, String password, GrantedAuthority[] authorities, Object principal)
public Object getCredentials()
Authentication
AuthenticationManager
. Callers are expected to populate the credentials.getCredentials
in interface Authentication
Principal
public String getName()
getName
in interface Principal
getName
in class AbstractAuthenticationToken
public Object getPrincipal()
Authentication
getPrincipal
in interface Authentication
Principal
being authenticatedCopyright © 2014. All rights reserved.