TOKENDUMP Extension: io.warp10.script.ext.token.TokenWarpScriptExtension


extensions platform
Since v2.0.0
Available on all platforms
See also

Configuration parameters


Deciphers a token and outputs a map describing the various elements of the token.

The map contains the following entries:

KeyTypeDescription
tokenSTRINGOriginal token
identLONGTokenIdent associated with token, can be used in a TRL
paramsMAPMap of token parameters, can be used as input to TOKENGEN

The params map contains the following entries for both READ and WRITE tokens:

KeyTypeDescription
typeSTRINGREAD or WRITE depending on the type of token
ownerSTRINGUUID of the owner associated with the token
producerSTRINGUUID of the producer associated with the token
applicationSTRINGName of application asociated with the token
issuanceLONGIssuance timestamp of the token, in ms since the Unix Epoch
expiryLONGExpiry timestamp of the token, in ms since the Unix Epoch
labelsMAPMap of labels which will be added to the pushed Geo Time Series™ int the case of a WRITE token, or map of label selectors which will be added to the selection criteria for a READ token
attributesMAPMap of attributes attached to the token

Additionally, for READ tokens, the map contains those entries:

KeyTypeDescription
ownersLISTList of owners the READ token can access, those will be added to the selection criteria
producersLISTList of producers the READ token can access, they will be added to the selection criteria
applicationsLISTList of applications the READ token can access, they will be added to the selection criteria

Note that the TOKENDUMP function can only be called using the Worf tool if the token.secret configuration key was not set.

Signature