public class WebClientReactiveClientCredentialsTokenResponseClient
extends java.lang.Object
implements org.springframework.security.oauth2.client.endpoint.ReactiveOAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest>
ReactiveOAuth2AccessTokenResponseClient
that "exchanges"
an authorization code credential for an access token credential
at the Authorization Server's Token Endpoint.OAuth2AccessTokenResponseClient
,
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(org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest authorizationGrantRequest) |
void |
setWebClient(org.springframework.web.reactive.function.client.WebClient webClient) |
public WebClientReactiveClientCredentialsTokenResponseClient()
public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> getTokenResponse(org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest authorizationGrantRequest)
getTokenResponse
in interface org.springframework.security.oauth2.client.endpoint.ReactiveOAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest>
public void setWebClient(org.springframework.web.reactive.function.client.WebClient webClient)