Class HMACVerifier

java.lang.Object
de.uplanet.tools.HMACVerifier

@Scriptable public final class HMACVerifier extends Object
Verifies a HMAC.
  • Method Details

    • verify

      public static boolean verify(String p_providedHmac, String p_secretKey, byte[] p_message)
      Verify the provided HMAC.
      Parameters:
      p_providedHmac - The provided HMAC.
      p_secretKey - The base64 encoded secret key from the outgoing Webhook config.
      p_message - The actual message.
      Returns:
      true, if it matches, false otherwise