public class RunAsUserToken extends AbstractAuthenticationToken
Authentication  implementation that supports RunAsManagerImpl.| Constructor and Description | 
|---|
RunAsUserToken(String key,
              Object principal,
              Object credentials,
              Collection<? extends GrantedAuthority> authorities,
              Class<? extends Authentication> originalAuthentication)  | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
getCredentials()
The credentials that prove the principal is correct. 
 | 
int | 
getKeyHash()  | 
Class<? extends Authentication> | 
getOriginalAuthentication()  | 
Object | 
getPrincipal()
The identity of the principal being authenticated. 
 | 
String | 
toString()  | 
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetailspublic RunAsUserToken(String key, Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities, Class<? extends Authentication> originalAuthentication)
public Object getCredentials()
AuthenticationAuthenticationManager. Callers are expected to populate the credentials.Principalpublic int getKeyHash()
public Class<? extends Authentication> getOriginalAuthentication()
public Object getPrincipal()
Authentication
 The AuthenticationManager implementation will often return an Authentication containing
 richer information as the principal for use by the application. Many of the authentication providers will
 create a UserDetails object as the principal.
Principal being authenticated or the authenticated principal after authentication.public String toString()
toString in interface PrincipaltoString in class AbstractAuthenticationToken