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:
-
AbstractHttpMessageConverter
OAuth2AccessTokenResponse
-
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 OAuth2AccessTokenResponse
readInternal
(Class<? extends OAuth2AccessTokenResponse> clazz, org.springframework.http.HttpInputMessage inputMessage) final void
setAccessTokenResponseConverter
(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2AccessTokenResponse> accessTokenResponseConverter) Sets theConverter
used for converting the OAuth 2.0 Access Token Response parameters to anOAuth2AccessTokenResponse
.final void
setAccessTokenResponseParametersConverter
(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, Object>> accessTokenResponseParametersConverter) Sets theConverter
used for converting theOAuth2AccessTokenResponse
to aMap
representation of the OAuth 2.0 Access Token Response parameters.final void
setTokenResponseConverter
(org.springframework.core.convert.converter.Converter<Map<String, String>, OAuth2AccessTokenResponse> tokenResponseConverter) Deprecated.UsesetAccessTokenResponseConverter(Converter)
insteadfinal void
setTokenResponseParametersConverter
(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, String>> tokenResponseParametersConverter) Deprecated.protected boolean
protected void
writeInternal
(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, 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
-
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:
supports
in 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:
readInternal
in 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:
writeInternal
in 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 theConverter
used for converting the OAuth 2.0 Access Token Response parameters to anOAuth2AccessTokenResponse
.- Parameters:
tokenResponseConverter
- theConverter
used for converting to anOAuth2AccessTokenResponse
-
setAccessTokenResponseConverter
public final void setAccessTokenResponseConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2AccessTokenResponse> accessTokenResponseConverter) Sets theConverter
used for converting the OAuth 2.0 Access Token Response parameters to anOAuth2AccessTokenResponse
.- Parameters:
accessTokenResponseConverter
- theConverter
used 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 theConverter
used for converting theOAuth2AccessTokenResponse
to aMap
representation of the OAuth 2.0 Access Token Response parameters.- Parameters:
tokenResponseParametersConverter
- theConverter
used for converting to aMap
representation of the Access Token Response parameters
-
setAccessTokenResponseParametersConverter
public final void setAccessTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse, Map<String, Object>> accessTokenResponseParametersConverter) Sets theConverter
used for converting theOAuth2AccessTokenResponse
to aMap
representation of the OAuth 2.0 Access Token Response parameters.- Parameters:
accessTokenResponseParametersConverter
- theConverter
used for converting to aMap
representation of the Access Token Response parameters- Since:
- 5.6
-