Class WebClientReactiveClientCredentialsTokenResponseClient
- java.lang.Object
-
- org.springframework.security.oauth2.client.endpoint.WebClientReactiveClientCredentialsTokenResponseClient
-
- All Implemented Interfaces:
ReactiveOAuth2AccessTokenResponseClient<OAuth2ClientCredentialsGrantRequest>
public class WebClientReactiveClientCredentialsTokenResponseClient extends java.lang.Object implements ReactiveOAuth2AccessTokenResponseClient<OAuth2ClientCredentialsGrantRequest>
An implementation of anReactiveOAuth2AccessTokenResponseClient
that "exchanges" an authorization code credential for an access token credential at the Authorization Server's Token Endpoint.
-
-
Constructor Summary
Constructors Constructor Description WebClientReactiveClientCredentialsTokenResponseClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<OAuth2AccessTokenResponse>
getTokenResponse(OAuth2ClientCredentialsGrantRequest authorizationGrantRequest)
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)
-
-
-
Method Detail
-
getTokenResponse
public reactor.core.publisher.Mono<OAuth2AccessTokenResponse> getTokenResponse(OAuth2ClientCredentialsGrantRequest authorizationGrantRequest)
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<OAuth2ClientCredentialsGrantRequest>
- Parameters:
authorizationGrantRequest
- the authorization grant request that contains the authorization grant credential- Returns:
- an
OAuth2AccessTokenResponse
that contains theaccess token
credential
-
setWebClient
public void setWebClient(org.springframework.web.reactive.function.client.WebClient webClient)
-
-