Class OIDCClientRegistrationRequestDecoder

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, UnmodifiableComponent, MessageDecoder, HttpServletRequestMessageDecoder

public class OIDCClientRegistrationRequestDecoder extends BaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
Message decoder decoding OpenID Connect ClientRegistrationRequests.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • objectMapper

      @NonnullAfterInit private com.fasterxml.jackson.databind.ObjectMapper objectMapper
      Object mapper used for pretty-printing JSON in the request.
  • Constructor Details

    • OIDCClientRegistrationRequestDecoder

      public OIDCClientRegistrationRequestDecoder()
  • Method Details

    • setObjectMapper

      public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper)
      Set the object mapper used for pretty-printing JSON in the request.
      Parameters:
      mapper - What to set.
      Since:
      4.1.0
    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      Overrides:
      doInitialize in class AbstractHttpServletRequestMessageDecoder
      Throws:
      ComponentInitializationException
    • parseMessage

      protected com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest parseMessage() throws MessageDecodingException
      Parses the message into the exact type of the request message.
      Specified by:
      parseMessage in class BaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
      Returns:
      The request message
      Throws:
      MessageDecodingException - if there is a problem decoding the message context
    • getMessageToLog

      protected String getMessageToLog(@Nullable com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest message)
      Get the string representation of what will be logged as the protocol message.
      Specified by:
      getMessageToLog in class BaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
      Parameters:
      message - the request message
      Returns:
      the string representing the protocol message for logging purposes