createJWT (FB)¶
FUNCTION_BLOCK createJWT EXTENDS CBML.ETrigTo
Function Block to create a JSON Web Tocken (JWT)
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xExecuteBOOLRising edge: Starts defined operationFALSE: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOutUDINTMax. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDoneBOOLReady condition reached
ETrigTo
xBusyBOOLOperation is running
ETrigTo
xErrorBOOLError condition reached
ETrigTo
Input
headerJSON.JSONDataJSON representation of the JWT Header
payloadJSON.JSONDataJSON representation of the JWT Payload
sSecretSTRING(511)‚‘
Secret for Symetric signing
sUseCaseNameSTRING‚‘
A name to identify this context in the security manager
sCommonNameSTRING‚‘
Certificate Common Name
pbJWTPOINTER TO BYTE
Pointer to JWT output
udiMaxJWTSizeUDINTMaximum size of JWT output
eAlgorithmJWT Algorithm
Output
udiJWTSizeUDINTSize of JWT output
eErrorOutput Error