Class WebhookSignatureUtil
java.lang.Object
com.broadleafcommerce.payment.service.gateway.webhooks.util.WebhookSignatureUtil
-
Constructor Summary
ConstructorDescriptionWebhookSignatureUtil
(CheckoutConfigurationProperties checkoutConfigurationProperties) -
Method Summary
Modifier and TypeMethodDescriptiongenerateSignature
(@NonNull String data, String applicationId, String tenantId) Generates a SHA-256 hash based on the webhook request body & the secret API keyprotected CheckoutConfigurationProperties
-
Constructor Details
-
WebhookSignatureUtil
-
-
Method Details
-
generateSignature
public String generateSignature(@NonNull @NonNull String data, @Nullable String applicationId, @Nullable String tenantId) Generates a SHA-256 hash based on the webhook request body & the secret API key- Parameters:
data
- The raw webhook request body, in the form of a StringapplicationId
- The application context id used to identify the correct secret API keytenantId
- The tenant context id used to identify the correct secret API key- Returns:
- a SHA-256 hash based on the webhook request body & the secret API key
-
getCheckoutConfigurationProperties
-