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>
Since:
7.0
See Also:
  • Constructor Details

    • OAuth2ClientRegistrationHttpMessageConverter

      public OAuth2ClientRegistrationHttpMessageConverter()
  • Method Details

    • supports

      protected boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.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:
      readInternal in class org.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:
      writeInternal in class org.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 the Converter used for converting the OAuth 2.0 Client Registration parameters to an OAuth2ClientRegistration.
      Parameters:
      clientRegistrationConverter - the Converter used for converting to an OAuth2ClientRegistration
    • setClientRegistrationParametersConverter

      public final void setClientRegistrationParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2ClientRegistration,Map<String,Object>> clientRegistrationParametersConverter)
      Sets the Converter used for converting the OAuth2ClientRegistration to a Map representation of the OAuth 2.0 Client Registration parameters.
      Parameters:
      clientRegistrationParametersConverter - the Converter used for converting to a Map representation of the OAuth 2.0 Client Registration parameters