Class OAuth2AccessTokenResponseHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
org.springframework.security.oauth2.core.http.converter.OAuth2AccessTokenResponseHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OAuth2AccessTokenResponse>
public class OAuth2AccessTokenResponseHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
A
HttpMessageConverter for an OAuth 2.0 Access
Token Response.- Since:
- 5.1
- See Also:
-
AbstractHttpMessageConverterOAuth2AccessTokenResponse
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OAuth2AccessTokenResponsereadInternal(Class<? extends OAuth2AccessTokenResponse> clazz, org.springframework.http.HttpInputMessage inputMessage) final voidsetAccessTokenResponseConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2AccessTokenResponse> accessTokenResponseConverter) Sets theConverterused for converting the OAuth 2.0 Access Token Response parameters to anOAuth2AccessTokenResponse.final voidsetAccessTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, Object>> accessTokenResponseParametersConverter) Sets theConverterused for converting theOAuth2AccessTokenResponseto aMaprepresentation of the OAuth 2.0 Access Token Response parameters.protected booleanprotected voidwriteInternal(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, 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
-
OAuth2AccessTokenResponseHttpMessageConverter
public OAuth2AccessTokenResponseHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
-
readInternal
protected OAuth2AccessTokenResponse readInternal(Class<? extends OAuth2AccessTokenResponse> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternalin classorg.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:
writeInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>- Throws:
org.springframework.http.converter.HttpMessageNotWritableException
-
setAccessTokenResponseConverter
public final void setAccessTokenResponseConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2AccessTokenResponse> accessTokenResponseConverter) Sets theConverterused for converting the OAuth 2.0 Access Token Response parameters to anOAuth2AccessTokenResponse.- Parameters:
accessTokenResponseConverter- theConverterused for converting to anOAuth2AccessTokenResponse- Since:
- 5.6
-
setAccessTokenResponseParametersConverter
public final void setAccessTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, Object>> accessTokenResponseParametersConverter) Sets theConverterused for converting theOAuth2AccessTokenResponseto aMaprepresentation of the OAuth 2.0 Access Token Response parameters.- Parameters:
accessTokenResponseParametersConverter- theConverterused for converting to aMaprepresentation of the Access Token Response parameters- Since:
- 5.6
-