org.acegisecurity.runas
public class RunAsUserToken extends AbstractAuthenticationToken
Authentication
implementation that supports RunAsManagerImpl
.Constructor and Description |
---|
RunAsUserToken(java.lang.String key,
java.lang.Object principal,
java.lang.Object credentials,
GrantedAuthority[] authorities,
java.lang.Class originalAuthentication) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCredentials()
The credentials that prove the principal is correct.
|
int |
getKeyHash() |
java.lang.Class |
getOriginalAuthentication() |
java.lang.Object |
getPrincipal()
The identity of the principal being authenticated.
|
java.lang.String |
toString() |
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails
public RunAsUserToken(java.lang.String key, java.lang.Object principal, java.lang.Object credentials, GrantedAuthority[] authorities, java.lang.Class originalAuthentication)
public java.lang.Object getCredentials()
Authentication
AuthenticationManager
. Callers are expected to populate the credentials.Principal
public int getKeyHash()
public java.lang.Class getOriginalAuthentication()
public java.lang.Object getPrincipal()
Authentication
Principal
being authenticatedpublic java.lang.String toString()
toString
in interface java.security.Principal
toString
in class AbstractAuthenticationToken
Copyright © 2004-2014 Interface21, Inc. All Rights Reserved.