Package discord4j.rest.interaction
Interface InteractionValidator
-
- All Known Implementing Classes:
TweetNaclFastInteractionValidator
public interface InteractionValidatorImplement to validate interactions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvalidateSignature(String signature, String timestamp, String body)See https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization
-
-
-
Method Detail
-
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 requesttimestamp- the timestamp header of the requestbody- the body of the request- Returns:
trueif the request is valid,falseotherwise
-
-