Class TweetNaclFastInteractionValidator

    • Constructor Detail

      • TweetNaclFastInteractionValidator

        public TweetNaclFastInteractionValidator​(String publicKey)
    • Method Detail

      • validateSignature

        public boolean validateSignature​(String signature,
                                         String timestamp,
                                         String body)
        Description copied from interface: InteractionValidator
        See https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization
        Specified by:
        validateSignature in interface InteractionValidator
        Parameters:
        signature - the signature header of the request
        timestamp - the timestamp header of the request
        body - the body of the request
        Returns:
        true if the request is valid, false otherwise