Class DefaultSnsMessageManager

    • Method Detail

      • parseMessage

        public SnsMessage parseMessage​(InputStream message)
        Description copied from interface: SnsMessageManager
        Parses and validates an SNS message from a stream.

        This method reads the JSON message payload, validates the signature, returns a parsed SNS message object with all message attributes if validation succeeds.

        Specified by:
        parseMessage in interface SnsMessageManager
        Parameters:
        message - The binary stream representation of the SNS message.
        Returns:
        The parsed SNS message.
      • parseMessage

        public SnsMessage parseMessage​(String message)
        Description copied from interface: SnsMessageManager
        Parses and validates an SNS message from a string.

        This method reads the JSON message payload, validates the signature, returns a parsed SNS message object with all message attributes if validation succeeds.

        Specified by:
        parseMessage in interface SnsMessageManager
        Parameters:
        message - The string representation of the SNS message.
        Returns:
        the parsed SNS message.