public class WebClientReactiveClientCredentialsTokenResponseClient
extends java.lang.Object
ReactiveOAuth2AccessTokenResponseClient that "exchanges"
a client credential for an access token credential
at the Authorization Server's Token Endpoint.ReactiveOAuth2AccessTokenResponseClient,
OAuth2AuthorizationCodeGrantRequest,
OAuth2AccessTokenResponse,
Nimbus OAuth 2.0 SDK,
Section 4.1.3 Access Token Request (Authorization Code Grant),
Section 4.1.4 Access Token Response (Authorization Code Grant)| Constructor and Description |
|---|
WebClientReactiveClientCredentialsTokenResponseClient() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> |
getTokenResponse(T grantRequest)
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 WebClientReactiveClientCredentialsTokenResponseClient()
public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> getTokenResponse(T grantRequest)
ReactiveOAuth2AccessTokenResponseClientgetTokenResponse in interface ReactiveOAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>grantRequest - 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