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
.-
Constructor Summary
ConstructorDescriptionTokenExchangeGrantRequest
(ClientRegistration clientRegistration, OAuth2Token subjectToken, OAuth2Token actorToken) Constructs aTokenExchangeGrantRequest
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
getClientRegistration, getGrantType
-
Constructor Details
-
TokenExchangeGrantRequest
public TokenExchangeGrantRequest(ClientRegistration clientRegistration, OAuth2Token subjectToken, OAuth2Token actorToken) Constructs aTokenExchangeGrantRequest
using the provided parameters.- Parameters:
clientRegistration
- the client registrationsubjectToken
- the subject tokenactorToken
- the actor token
-
-
Method Details
-
getSubjectToken
Returns thesubject token
.- Returns:
- the
subject token
-
getActorToken
Returns theactor token
.- Returns:
- the
actor token
-