Class BaseOAuth2RequestDecoder<T extends com.nimbusds.oauth2.sdk.Request>

    • Field Detail

      • log

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

        @Nonnull
        private final org.slf4j.Logger protocolMessageLog
        Used to log protocol messages.
    • Constructor Detail

      • BaseOAuth2RequestDecoder

        public BaseOAuth2RequestDecoder()
    • Method Detail

      • getProtocolMessageLog

        @Nonnull
        protected org.slf4j.Logger getProtocolMessageLog()
        Get the protocol message logger.
        Returns:
        The protocol message logger
      • parseMessage

        @Nullable
        protected abstract T parseMessage()
                                   throws MessageDecodingException
        Parses the message into the exact type of the request message.
        Returns:
        The request message
        Throws:
        MessageDecodingException - if there is a problem decoding the message context
      • getMessageToLog

        @Nullable
        protected abstract String getMessageToLog​(T message)
        Get the string representation of what will be logged as the protocol message.
        Parameters:
        message - the request message
        Returns:
        the string representing the protocol message for logging purposes