Class OAuth2TokenExchangeCompositeAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2TokenExchangeCompositeAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class OAuth2TokenExchangeCompositeAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
An Authentication implementation used for the OAuth 2.0 Token Exchange Grant to represent the principal in a composite token (e.g. the "delegation" use case).
Since:
7.0
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
    OAuth2TokenExchangeCompositeAuthenticationToken(org.springframework.security.core.Authentication subject, List<OAuth2TokenExchangeActor> actors)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
     
    org.springframework.security.core.Authentication
     
    int
     

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

    eraseCredentials, getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString

    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

    • OAuth2TokenExchangeCompositeAuthenticationToken

      public OAuth2TokenExchangeCompositeAuthenticationToken(org.springframework.security.core.Authentication subject, List<OAuth2TokenExchangeActor> actors)
  • Method Details

    • getPrincipal

      public Object getPrincipal()
    • getCredentials

      public Object getCredentials()
    • getSubject

      public org.springframework.security.core.Authentication getSubject()
    • getActors

      public List<OAuth2TokenExchangeActor> getActors()
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class org.springframework.security.authentication.AbstractAuthenticationToken
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class org.springframework.security.authentication.AbstractAuthenticationToken