Class OidcProviderConfigurationHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<OidcProviderConfiguration>
org.springframework.security.oauth2.server.authorization.oidc.http.converter.OidcProviderConfigurationHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OidcProviderConfiguration>
public class OidcProviderConfigurationHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<OidcProviderConfiguration>
A
HttpMessageConverter
for an OpenID Provider Configuration Response
.- Since:
- 0.1.0
- See Also:
-
AbstractHttpMessageConverter
OidcProviderConfiguration
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OidcProviderConfiguration
readInternal
(Class<? extends OidcProviderConfiguration> clazz, org.springframework.http.HttpInputMessage inputMessage) final void
setProviderConfigurationConverter
(org.springframework.core.convert.converter.Converter<Map<String, Object>, OidcProviderConfiguration> providerConfigurationConverter) Sets theConverter
used for converting the OpenID Provider Configuration parameters to anOidcProviderConfiguration
.final void
setProviderConfigurationParametersConverter
(org.springframework.core.convert.converter.Converter<OidcProviderConfiguration, Map<String, Object>> providerConfigurationParametersConverter) Sets theConverter
used for converting theOidcProviderConfiguration
to aMap
representation of the OpenID Provider Configuration.protected boolean
protected void
writeInternal
(OidcProviderConfiguration providerConfiguration, 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, 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
-
OidcProviderConfigurationHttpMessageConverter
public OidcProviderConfigurationHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supports
in classorg.springframework.http.converter.AbstractHttpMessageConverter<OidcProviderConfiguration>
-
readInternal
protected OidcProviderConfiguration readInternal(Class<? extends OidcProviderConfiguration> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<OidcProviderConfiguration>
- Throws:
org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(OidcProviderConfiguration providerConfiguration, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
writeInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<OidcProviderConfiguration>
- Throws:
org.springframework.http.converter.HttpMessageNotWritableException
-
setProviderConfigurationConverter
public final void setProviderConfigurationConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OidcProviderConfiguration> providerConfigurationConverter) Sets theConverter
used for converting the OpenID Provider Configuration parameters to anOidcProviderConfiguration
.- Parameters:
providerConfigurationConverter
- theConverter
used for converting to anOidcProviderConfiguration
-
setProviderConfigurationParametersConverter
public final void setProviderConfigurationParametersConverter(org.springframework.core.convert.converter.Converter<OidcProviderConfiguration, Map<String, Object>> providerConfigurationParametersConverter) Sets theConverter
used for converting theOidcProviderConfiguration
to aMap
representation of the OpenID Provider Configuration.- Parameters:
providerConfigurationParametersConverter
- theConverter
used for converting to aMap
representation of the OpenID Provider Configuration
-