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, setDetailspublic RunAsUserToken(String key, Object principal, Object credentials, GrantedAuthority[] authorities, Class originalAuthentication)
public Object getCredentials()
AuthenticationAuthenticationManager. Callers are expected to populate the credentials.Principalpublic int getKeyHash()
public Class getOriginalAuthentication()
public Object getPrincipal()
AuthenticationPrincipal being authenticatedpublic String toString()
toString in interface PrincipaltoString in class AbstractAuthenticationTokenCopyright © 2021. All rights reserved.