Class OAuth2DeviceAuthorizationResponseHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2DeviceAuthorizationResponse>
org.springframework.security.oauth2.core.http.converter.OAuth2DeviceAuthorizationResponseHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OAuth2DeviceAuthorizationResponse>

public class OAuth2DeviceAuthorizationResponseHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2DeviceAuthorizationResponse>
A HttpMessageConverter for an OAuth 2.0 Device Authorization Response.
Since:
6.1
See Also:
  • Constructor Details

    • OAuth2DeviceAuthorizationResponseHttpMessageConverter

      public OAuth2DeviceAuthorizationResponseHttpMessageConverter()
  • Method Details

    • supports

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

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

      protected void writeInternal(OAuth2DeviceAuthorizationResponse deviceAuthorizationResponse, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2DeviceAuthorizationResponse>
      Throws:
      org.springframework.http.converter.HttpMessageNotWritableException
    • setDeviceAuthorizationResponseConverter

      public final void setDeviceAuthorizationResponseConverter(org.springframework.core.convert.converter.Converter<Map<String,Object>,OAuth2DeviceAuthorizationResponse> deviceAuthorizationResponseConverter)
      Sets the Converter used for converting the OAuth 2.0 Device Authorization Response parameters to an OAuth2DeviceAuthorizationResponse.
      Parameters:
      deviceAuthorizationResponseConverter - the Converter used for converting to an OAuth2DeviceAuthorizationResponse
    • setDeviceAuthorizationResponseParametersConverter

      public final void setDeviceAuthorizationResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2DeviceAuthorizationResponse,Map<String,Object>> deviceAuthorizationResponseParametersConverter)
      Sets the Converter used for converting the OAuth2DeviceAuthorizationResponse to a Map representation of the OAuth 2.0 Device Authorization Response parameters.
      Parameters:
      deviceAuthorizationResponseParametersConverter - the Converter used for converting to a Map representation of the Device Authorization Response parameters