public static final class Webhook.Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
computeHmacSha256(java.lang.String key,
java.lang.String message)
Computes the HMAC/SHA-256 code for a given key and message.
|
static long |
getTimeNow()
Returns the current UTC timestamp in seconds.
|
public static java.lang.String computeHmacSha256(java.lang.String key,
java.lang.String message)
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException
key - the key used to generate the code.message - the message.java.security.NoSuchAlgorithmExceptionjava.security.InvalidKeyExceptionpublic static long getTimeNow()