Package com.onlinepayments.webhooks
Class SignatureValidator
java.lang.Object
com.onlinepayments.webhooks.SignatureValidator
Validator for webhooks signatures. Thread-safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(byte[] body, List<RequestHeader> requestHeaders) Validates the given body using the given request headers.voidvalidate(String body, List<RequestHeader> requestHeaders) Validates the given body using the given request headers.
-
Constructor Details
-
SignatureValidator
-
-
Method Details
-
validate
Validates the given body using the given request headers.- Throws:
SignatureValidationException- If the body could not be validated successfully.
-
validate
Validates the given body using the given request headers.- Throws:
SignatureValidationException- If the body could not be validated successfully.
-