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:
-
AbstractHttpMessageConverterOAuth2DeviceAuthorizationResponse
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OAuth2DeviceAuthorizationResponsereadInternal(Class<? extends OAuth2DeviceAuthorizationResponse> clazz, org.springframework.http.HttpInputMessage inputMessage) final voidsetDeviceAuthorizationResponseConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2DeviceAuthorizationResponse> deviceAuthorizationResponseConverter) Sets theConverterused for converting the OAuth 2.0 Device Authorization Response parameters to anOAuth2DeviceAuthorizationResponse.final voidsetDeviceAuthorizationResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2DeviceAuthorizationResponse, Map<String, Object>> deviceAuthorizationResponseParametersConverter) Sets theConverterused for converting theOAuth2DeviceAuthorizationResponseto aMaprepresentation of the OAuth 2.0 Device Authorization Response parameters.protected booleanprotected voidwriteInternal(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, supportsRepeatableWrites, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
OAuth2DeviceAuthorizationResponseHttpMessageConverter
public OAuth2DeviceAuthorizationResponseHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin 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:
readInternalin 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:
writeInternalin 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 theConverterused for converting the OAuth 2.0 Device Authorization Response parameters to anOAuth2DeviceAuthorizationResponse.- Parameters:
deviceAuthorizationResponseConverter- theConverterused for converting to anOAuth2DeviceAuthorizationResponse
-
setDeviceAuthorizationResponseParametersConverter
public final void setDeviceAuthorizationResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2DeviceAuthorizationResponse, Map<String, Object>> deviceAuthorizationResponseParametersConverter) Sets theConverterused for converting theOAuth2DeviceAuthorizationResponseto aMaprepresentation of the OAuth 2.0 Device Authorization Response parameters.- Parameters:
deviceAuthorizationResponseParametersConverter- theConverterused for converting to aMaprepresentation of the Device Authorization Response parameters
-