OpenXPKI::Server::Workflow::Activity::Tools::ListActiveToken
Load the alias names of all active tokens in the given token group (parameter
alias_group) or with the given token type (paramater token). The
list of token names will be in the context with key token_alias_list as array,
sorted by notbefore data, most current first. The target key can be set using
the target_key parameter
The class will throw an exception if no items are found unless the
"empty_ok" parameter is set to a true value.
- token
- Name of the token type to look up, e.g. certsign
- alias_group
- Name of the group to look up, e.g. ca-signer
token and group are mutually exclusive, token has
precedence.
- target_key
- Context item to write the result to
- empty_ok
- Boolean, if true does not throw an error if the token list is empty.