WebhookVerifier

constructor(secretKey: ByteArray)

Constructs the verifier with the secret key.

Parameters

secretKey

the secret key. should not be empty.


constructor(secretKey: String)

Constructs the verifier with the secret key encoded in Base64.

If the secret key starts with the prefix "whsec_", the prefix is ignored.

Parameters

secretKey

the secret key. Should be an optionally prefixed valid Base64 string which decodes to non-empty bytes.