check JWT()

This function checks the validity of a JWT token (JSON Web Token). For this purpose, its signature is checked.

Depending on the JWT algorithm used, either a certificate ID (parameter b) or the shared secret key (parameter c) must be specified.

The return value of the function is true or false.

Parameters


Parameter

Description

a

The complete JWT string (encoded in Base64).

b

ID of the certificate with the public key (for JWT algorithms RSx , ESx , PSx ).

c

Shared secret key for HMAC signature (for JWT algorithms HSx).

d

(optional) Name of a map into which the components of the JSON elements for payload and header are entered as key/value pairs. Header elements start with the keyword @JWTHEADER_.