public class OAuth2AccessTokenResponseHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>
HttpMessageConverter for an OAuth 2.0 Access Token Response.AbstractHttpMessageConverter,
OAuth2AccessTokenResponse| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2AccessTokenResponse> |
tokenResponseConverter |
protected org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,java.util.Map<java.lang.String,java.lang.String>> |
tokenResponseParametersConverter |
| Constructor and Description |
|---|
OAuth2AccessTokenResponseHttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected OAuth2AccessTokenResponse |
readInternal(java.lang.Class<? extends OAuth2AccessTokenResponse> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setTokenResponseConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2AccessTokenResponse> tokenResponseConverter)
Sets the
Converter used for converting the OAuth 2.0 Access Token Response parameters
to an OAuth2AccessTokenResponse. |
void |
setTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,java.util.Map<java.lang.String,java.lang.String>> tokenResponseParametersConverter)
Sets the
Converter used for converting the OAuth2AccessTokenResponse
to a Map representation of the OAuth 2.0 Access Token Response parameters. |
protected boolean |
supports(java.lang.Class<?> clazz) |
protected void |
writeInternal(OAuth2AccessTokenResponse tokenResponse,
org.springframework.http.HttpOutputMessage outputMessage) |
protected org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2AccessTokenResponse> tokenResponseConverter
protected org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,java.util.Map<java.lang.String,java.lang.String>> tokenResponseParametersConverter
public OAuth2AccessTokenResponseHttpMessageConverter()
protected boolean supports(java.lang.Class<?> clazz)
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>protected OAuth2AccessTokenResponse readInternal(java.lang.Class<? extends OAuth2AccessTokenResponse> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException
readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>org.springframework.http.converter.HttpMessageNotReadableExceptionprotected void writeInternal(OAuth2AccessTokenResponse tokenResponse, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException
writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessTokenResponse>org.springframework.http.converter.HttpMessageNotWritableExceptionpublic final void setTokenResponseConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2AccessTokenResponse> tokenResponseConverter)
Converter used for converting the OAuth 2.0 Access Token Response parameters
to an OAuth2AccessTokenResponse.tokenResponseConverter - the Converter used for converting to an OAuth2AccessTokenResponsepublic final void setTokenResponseParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AccessTokenResponse,java.util.Map<java.lang.String,java.lang.String>> tokenResponseParametersConverter)
Converter used for converting the OAuth2AccessTokenResponse
to a Map representation of the OAuth 2.0 Access Token Response parameters.tokenResponseParametersConverter - the Converter used for converting to a Map representation of the Access Token Response parameters