JadeJsonWebToken Class Constants

The constants provided by the JadeJsonWebToken class are listed in the following table.

Class Constant Value Description
Error_SecretTooShort "The provided secret is too short. It must be at least 16 characters." Returned by the encodeHS256, encodeHS384, and encodeHS512 methods if the secret parameter is less than the value of the MinSecretLength constant (16 characters)
MinSecretLength 16 The minimum allowed length for a secret passed to the encodeHS256, encodeHS384, or encodeHS512 method

2020.0.01 and higher