Package discord4j.rest.interaction
Class TweetNaclFastInteractionValidator
java.lang.Object
discord4j.rest.interaction.TweetNaclFastInteractionValidator
- All Implemented Interfaces:
InteractionValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validateSignature
(String signature, String timestamp, String body) See https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization
-
Constructor Details
-
TweetNaclFastInteractionValidator
-
-
Method Details
-
validateSignature
Description copied from interface:InteractionValidator
See https://discord.com/developers/docs/interactions/slash-commands#security-and-authorization- Specified by:
validateSignature
in interfaceInteractionValidator
- Parameters:
signature
- the signature header of the requesttimestamp
- the timestamp header of the requestbody
- the body of the request- Returns:
true
if the request is valid,false
otherwise
-