org.acegisecurity.adapters
public class PrincipalAcegiUserToken extends AbstractAdapterAuthenticationToken implements java.security.Principal
Principal
compatible Authentication
object.Constructor and Description |
---|
PrincipalAcegiUserToken(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, setAuthenticated
getAuthorities, getDetails, hashCode, setDetails, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAuthorities, getDetails
public PrincipalAcegiUserToken(java.lang.String key, java.lang.String username, java.lang.String password, GrantedAuthority[] authorities, java.lang.Object principal)
public java.lang.Object getCredentials()
Authentication
AuthenticationManager
. Callers are expected to populate the credentials.getCredentials
in interface Authentication
Principal
public java.lang.String getName()
getName
in interface java.security.Principal
getName
in class AbstractAuthenticationToken
public java.lang.Object getPrincipal()
Authentication
getPrincipal
in interface Authentication
Principal
being authenticatedCopyright © 2004-2014 Interface21, Inc. All Rights Reserved.