Class OAuth2AccessTokenResponseHttpMessageConverter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected OAuth2AccessTokenResponse readInternal​(java.lang.Class<? extends OAuth2AccessTokenResponse> clazz, org.springframework.http.HttpInputMessage inputMessage)  
      void setTokenResponseConverter​(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,​java.lang.String>,​OAuth2AccessTokenResponse> tokenResponseConverter)
      Sets the Converter used for converting the OAuth 2.0 Access Token Response parameters to an OAuth2AccessTokenResponse.
      void setTokenResponseParametersConverter​(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,​java.util.Map<java.lang.String,​java.lang.String>> tokenResponseParametersConverter)
      Sets the Converter used for converting the OAuth2AccessTokenResponse to a Map representation of the OAuth 2.0 Access Token Response parameters.
      protected boolean supports​(java.lang.Class<?> clazz)  
      protected void writeInternal​(OAuth2AccessTokenResponse tokenResponse, org.springframework.http.HttpOutputMessage outputMessage)  
      • Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

        getSupportedMediaTypes
    • Field Detail

      • tokenResponseConverter

        protected org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,​java.lang.String>,​OAuth2AccessTokenResponse> tokenResponseConverter
      • tokenResponseParametersConverter

        protected org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,​java.util.Map<java.lang.String,​java.lang.String>> tokenResponseParametersConverter
    • Constructor Detail

      • OAuth2AccessTokenResponseHttpMessageConverter

        public OAuth2AccessTokenResponseHttpMessageConverter()
    • Method Detail

      • supports

        protected boolean supports​(java.lang.Class<?> clazz)
        Specified by:
        supports in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
      • readInternal

        protected OAuth2AccessTokenResponse readInternal​(java.lang.Class<? extends OAuth2AccessTokenResponse> clazz,
                                                         org.springframework.http.HttpInputMessage inputMessage)
                                                  throws org.springframework.http.converter.HttpMessageNotReadableException
        Specified by:
        readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
        Throws:
        org.springframework.http.converter.HttpMessageNotReadableException
      • writeInternal

        protected void writeInternal​(OAuth2AccessTokenResponse tokenResponse,
                                     org.springframework.http.HttpOutputMessage outputMessage)
                              throws org.springframework.http.converter.HttpMessageNotWritableException
        Specified by:
        writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
        Throws:
        org.springframework.http.converter.HttpMessageNotWritableException
      • setTokenResponseConverter

        public final void setTokenResponseConverter​(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,​java.lang.String>,​OAuth2AccessTokenResponse> tokenResponseConverter)
        Sets the Converter used for converting the OAuth 2.0 Access Token Response parameters to an OAuth2AccessTokenResponse.
        Parameters:
        tokenResponseConverter - the Converter used for converting to an OAuth2AccessTokenResponse
      • setTokenResponseParametersConverter

        public final void setTokenResponseParametersConverter​(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,​java.util.Map<java.lang.String,​java.lang.String>> tokenResponseParametersConverter)
        Sets the Converter used for converting the OAuth2AccessTokenResponse to a Map representation of the OAuth 2.0 Access Token Response parameters.
        Parameters:
        tokenResponseParametersConverter - the Converter used for converting to a Map representation of the Access Token Response parameters