jwtClaimDelete (Function)

Top  Previous  Next

Architecture:

NX32L

Firmware version:

1.70.00


jwtClaimDelete deletes a claim from the JWT object.

 

Input:

jwt : SYSHANDLE

A handle to the JWT object.

 

name : STRING

The name of the claim to delete. If empty, all claims will be deleted.

 

 

 

Returns: INT

1

- Success

0

- Function is not supported.

-2

- Could not find JWT object.

-99

- Failed to delete claim.

 

 

Declaration:

FUNCTION jwtClaimDelete : INT;
VAR_INPUT
   jwt   : SYSHANDLE;
   name  : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
   rc  : INT;
   jwt : SYSHANDLE;
END_VAR;
 
BEGIN
   ...
   // Delete claim
   rc := jwtClaimDelete(jwt := jwtname := "name");
   ...
END;
 
END_PROGRAM;