OpenXPKI::Server::Workflow::Activity::Tools::GetIdentifierForAlias
Use the named alias or find the "best" token for the given
alias definition (either by token type or the alias_group name)
and return its certificate identifier.
The class will throw an exception if no matching item is found
unless empty_ok is set to a true value.
- alias
- The full alias, e.g. ca-signer-1
- 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, default cert_identifier.
- empty_ok
- Boolean, if true does not throw an error if the result is empty.