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:
-
AbstractHttpMessageConverterOAuth2TokenIntrospection
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OAuth2TokenIntrospectionreadInternal(Class<? extends OAuth2TokenIntrospection> clazz, org.springframework.http.HttpInputMessage inputMessage) final voidsetTokenIntrospectionConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2TokenIntrospection> tokenIntrospectionConverter) Sets theConverterused for converting the Token Introspection Response parameters to anOAuth2TokenIntrospection.final voidsetTokenIntrospectionParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospection, Map<String, Object>> tokenIntrospectionParametersConverter) Sets theConverterused for converting anOAuth2TokenIntrospectionto aMaprepresentation of the Token Introspection Response parameters.protected booleanprotected voidwriteInternal(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, 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
-
OAuth2TokenIntrospectionHttpMessageConverter
public OAuth2TokenIntrospectionHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin 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:
readInternalin 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:
writeInternalin 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 theConverterused for converting the Token Introspection Response parameters to anOAuth2TokenIntrospection.- Parameters:
tokenIntrospectionConverter- theConverterused for converting to anOAuth2TokenIntrospection
-
setTokenIntrospectionParametersConverter
public final void setTokenIntrospectionParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospection, Map<String, Object>> tokenIntrospectionParametersConverter) Sets theConverterused for converting anOAuth2TokenIntrospectionto aMaprepresentation of the Token Introspection Response parameters.- Parameters:
tokenIntrospectionParametersConverter- theConverterused for converting to aMaprepresentation of the Token Introspection Response parameters
-