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