validateAsymmetricTokenRS

validateAsymmetricTokenRS(token:    String; 
                          errorMsg: String output): Boolean typeMethod;

The validateAsymmetricTokenRS method of the JadeJWTValidator class validates the signature of the specified JSON Web Token encrypted with the Rivest‑Shamir‑Adleman (RSA) encryption algorithm and hashed with Secure Hash Algorithm (SHA).

The signature of the token is validated by obtaining a JSON Web Key Set from the well‑known endpoint of the issuer and using the public key from that JSON Web Key Set to validate the signature of the token.

If the signature is validated by the issuer, 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