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:
-
AbstractHttpMessageConverterOAuth2AuthorizationServerMetadata
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OAuth2AuthorizationServerMetadatareadInternal(Class<? extends OAuth2AuthorizationServerMetadata> clazz, org.springframework.http.HttpInputMessage inputMessage) final voidsetAuthorizationServerMetadataConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OAuth2AuthorizationServerMetadata> authorizationServerMetadataConverter) Sets theConverterused for converting the OAuth 2.0 Authorization Server Metadata parameters to anOAuth2AuthorizationServerMetadata.final voidsetAuthorizationServerMetadataParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationServerMetadata, Map<String, Object>> authorizationServerMetadataParametersConverter) Sets theConverterused for converting theOAuth2AuthorizationServerMetadatato aMaprepresentation of the OAuth 2.0 Authorization Server Metadata.protected booleanprotected voidwriteInternal(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, 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
-
OAuth2AuthorizationServerMetadataHttpMessageConverter
public OAuth2AuthorizationServerMetadataHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin 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:
readInternalin 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:
writeInternalin 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 theConverterused for converting the OAuth 2.0 Authorization Server Metadata parameters to anOAuth2AuthorizationServerMetadata.- Parameters:
authorizationServerMetadataConverter- theConverterused for converting to anOAuth2AuthorizationServerMetadata.
-
setAuthorizationServerMetadataParametersConverter
public final void setAuthorizationServerMetadataParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationServerMetadata, Map<String, Object>> authorizationServerMetadataParametersConverter) Sets theConverterused for converting theOAuth2AuthorizationServerMetadatato aMaprepresentation of the OAuth 2.0 Authorization Server Metadata.- Parameters:
authorizationServerMetadataParametersConverter- theConverterused for converting to aMaprepresentation of the OAuth 2.0 Authorization Server Metadata.
-