Interface InteractionValidator

All Known Implementing Classes:
TweetNaclFastInteractionValidator

public interface InteractionValidator
Implement to validate interactions
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    validateSignature(String signature, String timestamp, String body)
    See https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization
  • Method Details

    • validateSignature

      boolean validateSignature(String signature, String timestamp, String body)
      See https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization
      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