Class WebhookSignatureUtil


  • public class WebhookSignatureUtil
    extends Object
    • Method Detail

      • 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