Class WebClientReactiveRefreshTokenTokenResponseClient
- java.lang.Object
-
- org.springframework.security.oauth2.client.endpoint.WebClientReactiveRefreshTokenTokenResponseClient
-
- All Implemented Interfaces:
ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
public final class WebClientReactiveRefreshTokenTokenResponseClient extends java.lang.Object implements ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
An implementation of aReactiveOAuth2AccessTokenResponseClientfor therefresh_tokengrant. This implementation usesWebClientwhen requesting an access token credential at the Authorization Server's Token Endpoint.
-
-
Constructor Summary
Constructors Constructor Description WebClientReactiveRefreshTokenTokenResponseClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<OAuth2AccessTokenResponse>getTokenResponse(OAuth2RefreshTokenGrantRequest refreshTokenGrantRequest)Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.voidsetWebClient(org.springframework.web.reactive.function.client.WebClient webClient)Sets theWebClientused when requesting the OAuth 2.0 Access Token Response.
-
-
-
Method Detail
-
getTokenResponse
public reactor.core.publisher.Mono<OAuth2AccessTokenResponse> getTokenResponse(OAuth2RefreshTokenGrantRequest refreshTokenGrantRequest)
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 interfaceReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>- Parameters:
refreshTokenGrantRequest- the authorization grant request that contains the authorization grant credential- Returns:
- an
OAuth2AccessTokenResponsethat contains theaccess tokencredential
-
setWebClient
public void setWebClient(org.springframework.web.reactive.function.client.WebClient webClient)
Sets theWebClientused when requesting the OAuth 2.0 Access Token Response.- Parameters:
webClient- theWebClientused when requesting the Access Token Response
-
-