Class RunAsUserToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.access.intercept.RunAsUserToken
- All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer
@Deprecated
public class RunAsUserToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Deprecated.
Authentication is now separated from authorization in Spring Security. This
class is only used by now-deprecated components. There is not yet an equivalent
replacement in Spring Security.
An immutable
Authentication implementation
that supports RunAsManagerImpl.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication
org.springframework.security.core.Authentication.Builder<B> -
Constructor Summary
ConstructorsConstructorDescriptionRunAsUserToken(String key, Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Class<? extends org.springframework.security.core.Authentication> originalAuthentication) Deprecated. -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetailsMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
Constructor Details
-
RunAsUserToken
public RunAsUserToken(String key, Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Class<? extends org.springframework.security.core.Authentication> originalAuthentication) Deprecated.
-
-
Method Details
-
getCredentials
Deprecated. -
getKeyHash
public int getKeyHash()Deprecated. -
getOriginalAuthentication
public Class<? extends org.springframework.security.core.Authentication> getOriginalAuthentication()Deprecated. -
getPrincipal
Deprecated. -
toString
-