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