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