Class TokenExchangeGrantRequest
java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
org.springframework.security.oauth2.client.endpoint.TokenExchangeGrantRequest
A Token Exchange Grant request that holds the
subject token and
optional actor token.- Since:
- 6.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTokenExchangeGrantRequest(ClientRegistration clientRegistration, org.springframework.security.oauth2.core.OAuth2Token subjectToken, org.springframework.security.oauth2.core.OAuth2Token actorToken) Constructs aTokenExchangeGrantRequestusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.OAuth2TokenReturns theactor token.org.springframework.security.oauth2.core.OAuth2TokenReturns thesubject token.Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
getClientRegistration, getGrantType
-
Constructor Details
-
TokenExchangeGrantRequest
public TokenExchangeGrantRequest(ClientRegistration clientRegistration, org.springframework.security.oauth2.core.OAuth2Token subjectToken, org.springframework.security.oauth2.core.OAuth2Token actorToken) Constructs aTokenExchangeGrantRequestusing the provided parameters.- Parameters:
clientRegistration- the client registrationsubjectToken- the subject tokenactorToken- the actor token
-
-
Method Details
-
getSubjectToken
public org.springframework.security.oauth2.core.OAuth2Token getSubjectToken()Returns thesubject token.- Returns:
- the
subject token
-
getActorToken
public org.springframework.security.oauth2.core.OAuth2Token getActorToken()Returns theactor token.- Returns:
- the
actor token
-