Class AbstractWebClientReactiveOAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addHeadersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.http.HttpHeaders> headersConverter)
      Add (compose) the provided headersConverter to the current Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a HttpHeaders used in the OAuth 2.0 Access Token Request headers.
      void addParametersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String>> parametersConverter)
      Add (compose) the provided parametersConverter to the current Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a MultiValueMap used in the OAuth 2.0 Access Token Request body.
      reactor.core.publisher.Mono<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 setBodyExtractor​(org.springframework.web.reactive.function.BodyExtractor<reactor.core.publisher.Mono<OAuth2AccessTokenResponse>,​org.springframework.http.ReactiveHttpInputMessage> bodyExtractor)
      Sets the BodyExtractor that will be used to decode the OAuth2AccessTokenResponse
      void setHeadersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.http.HttpHeaders> headersConverter)
      Sets the Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a HttpHeaders used in the OAuth 2.0 Access Token Request headers.
      void setParametersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String>> parametersConverter)
      Sets the Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a MultiValueMap used in the OAuth 2.0 Access Token Request body.
      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

      • 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
      • setHeadersConverter

        public final void setHeadersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.http.HttpHeaders> headersConverter)
        Sets the Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a HttpHeaders used in the OAuth 2.0 Access Token Request headers.
        Parameters:
        headersConverter - the Converter used for converting the AbstractOAuth2AuthorizationGrantRequest to HttpHeaders
        Since:
        5.6
      • addHeadersConverter

        public final void addHeadersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.http.HttpHeaders> headersConverter)
        Add (compose) the provided headersConverter to the current Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a HttpHeaders used in the OAuth 2.0 Access Token Request headers.
        Parameters:
        headersConverter - the Converter to add (compose) to the current Converter used for converting the AbstractOAuth2AuthorizationGrantRequest to a HttpHeaders
        Since:
        5.6
      • setParametersConverter

        public final void setParametersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String>> parametersConverter)
        Sets the Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a MultiValueMap used in the OAuth 2.0 Access Token Request body.
        Parameters:
        parametersConverter - the Converter used for converting the AbstractOAuth2AuthorizationGrantRequest to MultiValueMap
        Since:
        5.6
      • addParametersConverter

        public final void addParametersConverter​(org.springframework.core.convert.converter.Converter<T,​org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String>> parametersConverter)
        Add (compose) the provided parametersConverter to the current Converter used for converting the AbstractOAuth2AuthorizationGrantRequest instance to a MultiValueMap used in the OAuth 2.0 Access Token Request body.
        Parameters:
        parametersConverter - the Converter to add (compose) to the current Converter used for converting the AbstractOAuth2AuthorizationGrantRequest to a MultiValueMap
        Since:
        5.6
      • setBodyExtractor

        public final void setBodyExtractor​(org.springframework.web.reactive.function.BodyExtractor<reactor.core.publisher.Mono<OAuth2AccessTokenResponse>,​org.springframework.http.ReactiveHttpInputMessage> bodyExtractor)
        Sets the BodyExtractor that will be used to decode the OAuth2AccessTokenResponse
        Parameters:
        bodyExtractor - the BodyExtractor that will be used to decode the OAuth2AccessTokenResponse
        Since:
        5.6