Class TweetNaclFastInteractionValidator

java.lang.Object
discord4j.rest.interaction.TweetNaclFastInteractionValidator
All Implemented Interfaces:
InteractionValidator

public class TweetNaclFastInteractionValidator extends Object implements InteractionValidator
  • Constructor Details

    • TweetNaclFastInteractionValidator

      public TweetNaclFastInteractionValidator(String publicKey)
  • Method Details

    • 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