Class TokenExchangeGrantRequest

java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
org.springframework.security.oauth2.client.endpoint.TokenExchangeGrantRequest

public class TokenExchangeGrantRequest extends AbstractOAuth2AuthorizationGrantRequest
A Token Exchange Grant request that holds the subject token and optional actor token.
Since:
6.3
See Also:
  • Constructor Details

    • TokenExchangeGrantRequest

      public TokenExchangeGrantRequest(ClientRegistration clientRegistration, org.springframework.security.oauth2.core.OAuth2Token subjectToken, org.springframework.security.oauth2.core.OAuth2Token actorToken)
      Constructs a TokenExchangeGrantRequest using the provided parameters.
      Parameters:
      clientRegistration - the client registration
      subjectToken - the subject token
      actorToken - the actor token
  • Method Details

    • getSubjectToken

      public org.springframework.security.oauth2.core.OAuth2Token getSubjectToken()
      Returns the subject token.
      Returns:
      the subject token
    • getActorToken

      public org.springframework.security.oauth2.core.OAuth2Token getActorToken()
      Returns the actor token.
      Returns:
      the actor token