org.acegisecurity.adapters
Class PrincipalAcegiUserToken
java.lang.Object
org.acegisecurity.providers.AbstractAuthenticationToken
org.acegisecurity.adapters.AbstractAdapterAuthenticationToken
org.acegisecurity.adapters.PrincipalAcegiUserToken
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal, AuthByAdapter, Authentication
public class PrincipalAcegiUserToken
- extends AbstractAdapterAuthenticationToken
- implements java.security.Principal
A Principal
compatible Authentication
object.
- Version:
- $Id: PrincipalAcegiUserToken.java 1784 2007-02-24 21:00:24Z luke_t $
- Author:
- Ben Alex
- See Also:
- Serialized Form
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
PrincipalAcegiUserToken
public PrincipalAcegiUserToken(java.lang.String key,
java.lang.String username,
java.lang.String password,
GrantedAuthority[] authorities,
java.lang.Object principal)
getCredentials
public java.lang.Object getCredentials()
- Description copied from interface:
Authentication
- The credentials that prove the principal is correct. This is usually a password, but could be anything
relevant to the
AuthenticationManager
. Callers are expected to populate the credentials.
- Specified by:
getCredentials
in interface Authentication
- Returns:
- the credentials that prove the identity of the
Principal
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
- Overrides:
getName
in class AbstractAuthenticationToken
getPrincipal
public java.lang.Object getPrincipal()
- Description copied from interface:
Authentication
- The identity of the principal being authenticated. This is usually a username. Callers are expected to
populate the principal.
- Specified by:
getPrincipal
in interface Authentication
- Returns:
- the
Principal
being authenticated
Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.