validateSymmetricToken

validateSymmetricToken(token:    String; 
                       secret:   String; 
                       errorMsg: String output): Boolean typeMethod;

The validateSymmetricToken method of the JadeJWTValidator class validates the signature of the specified JSON Web Token encrypted with the Hash‑based Message Authentication Code (HMAC) encryption algorithm and hashed with Secure Hash Algorithm (SHA).

The token is validated by using the specified secret parameter to validate the signature of the token.

If the signature can be validated with the specified secret, the method returns true; otherwise it returns false and the sets the errorMsg parameter. (For a description of the values that can be returned, see "JadeJWTValidator Class Constants".)

2020.0.01 and higher