Class DefaultJwtBearerTokenResponseClient

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OAuth2AccessTokenResponse getTokenResponse​(JwtBearerGrantRequest jwtBearerGrantRequest)
      Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.
      void setRequestEntityConverter​(org.springframework.core.convert.converter.Converter<JwtBearerGrantRequest,​org.springframework.http.RequestEntity<?>> requestEntityConverter)
      Sets the Converter used for converting the JwtBearerGrantRequest to a RequestEntity representation of the OAuth 2.0 Access Token Request.
      void setRestOperations​(org.springframework.web.client.RestOperations restOperations)
      Sets the RestOperations 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
    • Constructor Detail

      • DefaultJwtBearerTokenResponseClient

        public DefaultJwtBearerTokenResponseClient()
    • Method Detail

      • setRequestEntityConverter

        public void setRequestEntityConverter​(org.springframework.core.convert.converter.Converter<JwtBearerGrantRequest,​org.springframework.http.RequestEntity<?>> requestEntityConverter)
        Sets the Converter used for converting the JwtBearerGrantRequest to a RequestEntity representation of the OAuth 2.0 Access Token Request.
        Parameters:
        requestEntityConverter - the Converter used for converting to a RequestEntity representation of the Access Token Request
      • setRestOperations

        public void setRestOperations​(org.springframework.web.client.RestOperations restOperations)
        Sets the RestOperations used when requesting the OAuth 2.0 Access Token Response.

        NOTE: At a minimum, the supplied restOperations must be configured with the following:

        1. HttpMessageConverter's - FormHttpMessageConverter and OAuth2AccessTokenResponseHttpMessageConverter
        2. ResponseErrorHandler - OAuth2ErrorResponseErrorHandler
        Parameters:
        restOperations - the RestOperations used when requesting the Access Token Response