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 Summary
-
Method Summary
Modifier 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.AbstractWebClientReactiveOAuth2AccessTokenResponseClient
addHeadersConverter, addParametersConverter, setBodyExtractor, setHeadersConverter, setParametersConverter, setParametersCustomizer, setWebClient
-
Constructor Details
-
WebClientReactiveRefreshTokenTokenResponseClient
public WebClientReactiveRefreshTokenTokenResponseClient()
-
-
Method Details
-
getTokenResponse
public reactor.core.publisher.Mono<OAuth2AccessTokenResponse> getTokenResponse(OAuth2RefreshTokenGrantRequest grantRequest) Description copied from interface:ReactiveOAuth2AccessTokenResponseClient
Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.- Specified by:
getTokenResponse
in interfaceReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
- Overrides:
getTokenResponse
in classAbstractWebClientReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
- Parameters:
grantRequest
- the authorization grant request that contains the authorization grant credential- Returns:
- an
OAuth2AccessTokenResponse
that contains theaccess token
credential
-