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:
-
AbstractHttpMessageConverter
OAuth2DeviceAuthorizationResponse
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected OAuth2DeviceAuthorizationResponse
readInternal
(Class<? extends OAuth2DeviceAuthorizationResponse> clazz, org.springframework.http.HttpInputMessage inputMessage) final void
setDeviceAuthorizationResponseConverter
(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2DeviceAuthorizationResponse> deviceAuthorizationResponseConverter) Sets theConverter
used for converting the OAuth 2.0 Device Authorization Response parameters to anOAuth2DeviceAuthorizationResponse
.final void
setDeviceAuthorizationResponseParametersConverter
(org.springframework.core.convert.converter.Converter<OAuth2DeviceAuthorizationResponse, Map<String, Object>> deviceAuthorizationResponseParametersConverter) Sets theConverter
used for converting theOAuth2DeviceAuthorizationResponse
to aMap
representation of the OAuth 2.0 Device Authorization Response parameters.protected boolean
protected void
writeInternal
(OAuth2DeviceAuthorizationResponse deviceAuthorizationResponse, 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
-
Constructor Details
-
OAuth2DeviceAuthorizationResponseHttpMessageConverter
public OAuth2DeviceAuthorizationResponseHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supports
in classorg.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 classorg.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 classorg.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 theConverter
used for converting the OAuth 2.0 Device Authorization Response parameters to anOAuth2DeviceAuthorizationResponse
.- Parameters:
deviceAuthorizationResponseConverter
- theConverter
used for converting to anOAuth2DeviceAuthorizationResponse
-
setDeviceAuthorizationResponseParametersConverter
public final void setDeviceAuthorizationResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2DeviceAuthorizationResponse, Map<String, Object>> deviceAuthorizationResponseParametersConverter) Sets theConverter
used for converting theOAuth2DeviceAuthorizationResponse
to aMap
representation of the OAuth 2.0 Device Authorization Response parameters.- Parameters:
deviceAuthorizationResponseParametersConverter
- theConverter
used for converting to aMap
representation of the Device Authorization Response parameters
-