java.lang.Object
com.broadleafcommerce.payment.service.gateway.webhooks.util.WebhookSignatureUtil

public class WebhookSignatureUtil extends Object
  • Constructor Details

  • 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 String
      applicationId - The application context id used to identify the correct secret API key
      tenantId - 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

      protected CheckoutConfigurationProperties getCheckoutConfigurationProperties()