Class OidcClientRegistrationHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<OidcClientRegistration>
org.springframework.security.oauth2.server.authorization.oidc.http.converter.OidcClientRegistrationHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OidcClientRegistration>
public class OidcClientRegistrationHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<OidcClientRegistration>
A
HttpMessageConverter for an OpenID Client
Registration Request and Response.- Since:
- 0.1.1
- See Also:
-
AbstractHttpMessageConverterOidcClientRegistration
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OidcClientRegistrationreadInternal(Class<? extends OidcClientRegistration> clazz, org.springframework.http.HttpInputMessage inputMessage) final voidsetClientRegistrationConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OidcClientRegistration> clientRegistrationConverter) Sets theConverterused for converting the OpenID Client Registration parameters to anOidcClientRegistration.final voidsetClientRegistrationParametersConverter(org.springframework.core.convert.converter.Converter<OidcClientRegistration, Map<String, Object>> clientRegistrationParametersConverter) Sets theConverterused for converting theOidcClientRegistrationto aMaprepresentation of the OpenID Client Registration parameters.protected booleanprotected voidwriteInternal(OidcClientRegistration clientRegistration, 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
-
OidcClientRegistrationHttpMessageConverter
public OidcClientRegistrationHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<OidcClientRegistration>
-
readInternal
protected OidcClientRegistration readInternal(Class<? extends OidcClientRegistration> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<OidcClientRegistration>- Throws:
org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(OidcClientRegistration clientRegistration, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
writeInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<OidcClientRegistration>- Throws:
org.springframework.http.converter.HttpMessageNotWritableException
-
setClientRegistrationConverter
public final void setClientRegistrationConverter(org.springframework.core.convert.converter.Converter<Map<String, Object>, OidcClientRegistration> clientRegistrationConverter) Sets theConverterused for converting the OpenID Client Registration parameters to anOidcClientRegistration.- Parameters:
clientRegistrationConverter- theConverterused for converting to anOidcClientRegistration
-
setClientRegistrationParametersConverter
public final void setClientRegistrationParametersConverter(org.springframework.core.convert.converter.Converter<OidcClientRegistration, Map<String, Object>> clientRegistrationParametersConverter) Sets theConverterused for converting theOidcClientRegistrationto aMaprepresentation of the OpenID Client Registration parameters.- Parameters:
clientRegistrationParametersConverter- theConverterused for converting to aMaprepresentation of the OpenID Client Registration parameters
-