Class OAuth2TokenIntrospectionHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
org.springframework.security.oauth2.server.authorization.http.converter.OAuth2TokenIntrospectionHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OAuth2TokenIntrospection>
public class OAuth2TokenIntrospectionHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
A
HttpMessageConverter
for an OAuth 2.0 Token Introspection Response
.- Since:
- 0.1.1
- See Also:
-
AbstractHttpMessageConverter
OAuth2TokenIntrospection
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected OAuth2TokenIntrospection
readInternal
(Class<? extends OAuth2TokenIntrospection> clazz, org.springframework.http.HttpInputMessage inputMessage) final void
setTokenIntrospectionConverter
(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2TokenIntrospection> tokenIntrospectionConverter) Sets theConverter
used for converting the Token Introspection Response parameters to anOAuth2TokenIntrospection
.final void
setTokenIntrospectionParametersConverter
(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospection, Map<String, Object>> tokenIntrospectionParametersConverter) Sets theConverter
used for converting anOAuth2TokenIntrospection
to aMap
representation of the Token Introspection Response parameters.protected boolean
protected void
writeInternal
(OAuth2TokenIntrospection tokenIntrospection, 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
-
Constructor Details
-
OAuth2TokenIntrospectionHttpMessageConverter
public OAuth2TokenIntrospectionHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supports
in classorg.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
-
readInternal
protected OAuth2TokenIntrospection readInternal(Class<? extends OAuth2TokenIntrospection> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
- Throws:
org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(OAuth2TokenIntrospection tokenIntrospection, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
writeInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<OAuth2TokenIntrospection>
- Throws:
org.springframework.http.converter.HttpMessageNotWritableException
-
setTokenIntrospectionConverter
public final void setTokenIntrospectionConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2TokenIntrospection> tokenIntrospectionConverter) Sets theConverter
used for converting the Token Introspection Response parameters to anOAuth2TokenIntrospection
.- Parameters:
tokenIntrospectionConverter
- theConverter
used for converting to anOAuth2TokenIntrospection
-
setTokenIntrospectionParametersConverter
public final void setTokenIntrospectionParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospection, Map<String, Object>> tokenIntrospectionParametersConverter) Sets theConverter
used for converting anOAuth2TokenIntrospection
to aMap
representation of the Token Introspection Response parameters.- Parameters:
tokenIntrospectionParametersConverter
- theConverter
used for converting to aMap
representation of the Token Introspection Response parameters
-