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 Summary
Constructors -
Method Summary
Modifier 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.AbstractRestClientOAuth2AccessTokenResponseClient
addHeadersConverter, addParametersConverter, setHeadersConverter, setParametersConverter, setParametersCustomizer, setRestClient
-
Constructor Details
-
RestClientRefreshTokenTokenResponseClient
public RestClientRefreshTokenTokenResponseClient()
-
-
Method Details
-
getTokenResponse
Description 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 interfaceOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>- Overrides:
getTokenResponsein classAbstractRestClientOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>- Parameters:
grantRequest- the authorization grant request that contains the authorization grant credential- Returns:
- an
OAuth2AccessTokenResponsethat contains theaccess tokencredential
-