Class WebClientReactiveRefreshTokenTokenResponseClient
java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractWebClientReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
org.springframework.security.oauth2.client.endpoint.WebClientReactiveRefreshTokenTokenResponseClient
- All Implemented Interfaces:
- ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
public final class WebClientReactiveRefreshTokenTokenResponseClient
extends AbstractWebClientReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
An implementation of a 
ReactiveOAuth2AccessTokenResponseClient for the
 refresh_token grant. This implementation
 uses WebClient when requesting an access token credential at the Authorization
 Server's Token Endpoint.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<OAuth2AccessTokenResponse>getTokenResponse(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.AbstractWebClientReactiveOAuth2AccessTokenResponseClientaddHeadersConverter, addParametersConverter, setBodyExtractor, setHeadersConverter, setParametersConverter, setParametersCustomizer, setWebClient
- 
Constructor Details- 
WebClientReactiveRefreshTokenTokenResponseClientpublic WebClientReactiveRefreshTokenTokenResponseClient()
 
- 
- 
Method Details- 
getTokenResponsepublic reactor.core.publisher.Mono<OAuth2AccessTokenResponse> getTokenResponse(OAuth2RefreshTokenGrantRequest grantRequest) Description copied from interface:ReactiveOAuth2AccessTokenResponseClientExchanges 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- ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
- Overrides:
- getTokenResponsein class- AbstractWebClientReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
- Parameters:
- grantRequest- the authorization grant request that contains the authorization grant credential
- Returns:
- an OAuth2AccessTokenResponsethat contains theaccess tokencredential
 
 
-