public final class WebClientReactiveRefreshTokenTokenResponseClient extends java.lang.Object implements ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
ReactiveOAuth2AccessTokenResponseClient
for the refresh_token
grant.
This implementation uses WebClient
when requesting
an access token credential at the Authorization Server's Token Endpoint.Constructor and Description |
---|
WebClientReactiveRefreshTokenTokenResponseClient() |
Modifier and Type | Method and 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.
|
void |
setWebClient(org.springframework.web.reactive.function.client.WebClient webClient)
Sets the
WebClient used when requesting the OAuth 2.0 Access Token Response. |
public WebClientReactiveRefreshTokenTokenResponseClient()
public reactor.core.publisher.Mono<OAuth2AccessTokenResponse> getTokenResponse(OAuth2RefreshTokenGrantRequest refreshTokenGrantRequest)
ReactiveOAuth2AccessTokenResponseClient
getTokenResponse
in interface ReactiveOAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest>
refreshTokenGrantRequest
- the authorization grant request that contains the authorization grant credentialOAuth2AccessTokenResponse
that contains the access token
credentialpublic void setWebClient(org.springframework.web.reactive.function.client.WebClient webClient)
WebClient
used when requesting the OAuth 2.0 Access Token Response.webClient
- the WebClient
used when requesting the Access Token Response