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 extends 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 extends org.springframework.security.core.Authentication.Builder<B>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    int
    Deprecated.
     
    Class<? extends org.springframework.security.core.Authentication>
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.Authentication

    toBuilder

    Methods inherited from interface java.security.Principal

    implies
  • 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

      public Object getCredentials()
      Deprecated.
    • getKeyHash

      public int getKeyHash()
      Deprecated.
    • getOriginalAuthentication

      public Class<? extends org.springframework.security.core.Authentication> getOriginalAuthentication()
      Deprecated.
    • getPrincipal

      public Object getPrincipal()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class org.springframework.security.authentication.AbstractAuthenticationToken