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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.core.convert.converter.Converter<Map<String,String>, OAuth2AccessTokenResponse> Deprecated.This field should no longer be usedprotected org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,Map<String, String>> Deprecated.This field should no longer be usedFields 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.final voidsetTokenResponseConverter(org.springframework.core.convert.converter.Converter<Map<String, String>, OAuth2AccessTokenResponse> tokenResponseConverter) Deprecated.UsesetAccessTokenResponseConverter(Converter)insteadfinal voidsetTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, String>> tokenResponseParametersConverter) Deprecated.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, 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
-
Field Details
-
tokenResponseConverter
@Deprecated protected org.springframework.core.convert.converter.Converter<Map<String,String>, tokenResponseConverterOAuth2AccessTokenResponse> Deprecated.This field should no longer be used -
tokenResponseParametersConverter
@Deprecated protected org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,Map<String, tokenResponseParametersConverterString>> Deprecated.This field should no longer be used
-
-
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
-
setTokenResponseConverter
@Deprecated public final void setTokenResponseConverter(org.springframework.core.convert.converter.Converter<Map<String, String>, OAuth2AccessTokenResponse> tokenResponseConverter) Deprecated.UsesetAccessTokenResponseConverter(Converter)insteadSets theConverterused for converting the OAuth 2.0 Access Token Response parameters to anOAuth2AccessTokenResponse.- Parameters:
tokenResponseConverter- theConverterused for converting to anOAuth2AccessTokenResponse
-
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
-
setTokenResponseParametersConverter
@Deprecated public final void setTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, String>> tokenResponseParametersConverter) Deprecated.Sets theConverterused for converting theOAuth2AccessTokenResponseto aMaprepresentation of the OAuth 2.0 Access Token Response parameters.- Parameters:
tokenResponseParametersConverter- theConverterused for converting to aMaprepresentation of the Access Token Response parameters
-
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
-