Class RestClientRefreshTokenTokenResponseClient
java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractRestClientOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
org.springframework.security.oauth2.client.endpoint.RestClientRefreshTokenTokenResponseClient
- All Implemented Interfaces:
- OAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
public final class RestClientRefreshTokenTokenResponseClient
extends AbstractRestClientOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
An implementation of 
OAuth2AccessTokenResponseClient that "exchanges"
 a refresh token for an access token at the Authorization Server's Token Endpoint.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetTokenResponse(OAuth2RefreshTokenGrantRequest grantRequest) Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractRestClientOAuth2AccessTokenResponseClientaddHeadersConverter, addParametersConverter, setHeadersConverter, setParametersConverter, setParametersCustomizer, setRestClient
- 
Constructor Details- 
RestClientRefreshTokenTokenResponseClientpublic RestClientRefreshTokenTokenResponseClient()
 
- 
- 
Method Details- 
getTokenResponseDescription copied from interface:OAuth2AccessTokenResponseClientExchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.- Specified by:
- getTokenResponsein interface- OAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
- Overrides:
- getTokenResponsein class- AbstractRestClientOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
- Parameters:
- grantRequest- the authorization grant request that contains the authorization grant credential
- Returns:
- an OAuth2AccessTokenResponsethat contains theaccess tokencredential
 
 
-