Class AbstractWebClientReactiveOAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTokenResponse

        public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> getTokenResponse​(T grantRequest)
        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 interface ReactiveOAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>
        Parameters:
        grantRequest - the authorization grant request that contains the authorization grant credential
        Returns:
        an OAuth2AccessTokenResponse that contains the access token credential
      • setWebClient

        public void setWebClient​(org.springframework.web.reactive.function.client.WebClient webClient)
        Sets the WebClient used when requesting the OAuth 2.0 Access Token Response.
        Parameters:
        webClient - the WebClient used when requesting the Access Token Response