jwtAlgGet (Function) |
Top Previous Next |
jwtAlgGet returns the encryption algorithm used by the JWT object.
Should be used every time a JWT has been decoded with jwtDecodeAsym and jwtDecodeSym to validate that it was correctly signed. Can also be used to get the value set with jwtAlgSetAsym and jwtAlgSetSym.
Input: jwt : SYSHANDLE The JWT object to check.
Returns: INT The encryption algorithm used:
Declaration: FUNCTION jwtAlgGet : INT;
Example: INCLUDE rtcu.inc |