Fires once for each key when listing keys.
The 'callback' is called when the 'KeyList' event is emited.
The argument 'e' has the following properties:
e.name e.versionId e.keyType e.keyOps e.enabled e.creationDate e.updateDate e.deletionDate e.purgeDate e.publicKey
This event fires once for each key (or key version) returned when ListKeys, ListVersions, or GetKeyInfo is called. However, note that the KeyOps, KeyType, PublicKey, and (for ListKeys) VersionId parameters are not populated when one of the listing methods is called unless the IncludeKeyDetails property is enabled; refer to its documentation for more information.
Name reflects the name of the key.
VersionId reflects the Id of the key version.
KeyType reflects the key's type. Each key type has two variants, a software-based one and an HSM-based one. Possible values are shown in the first two columns of the following table:
|The NIST P-256 curve (SECP256R1).
|The SECP256K1 curve.
|The NIST P-384 curve (SECP384R1).
|The NIST P-521 curve (SECP521R1).
|2048-bit RSA key.
|3072-bit RSA key.
|4096-bit RSA key.
KeyOps reflects a comma-separated list of operations that the key may be used for. Possible values are:
Enabled reflects whether the key is currently enabled.
CreationDate reflects the key's creation date, in seconds since the Unix epoch.
UpdateDate reflects the key's update date, in seconds since the Unix epoch.
DeletionDate reflects the key's deletion date, in seconds since the Unix epoch, or -1 if the key has not been deleted.
PurgeDate reflects the key's purge (i.e., permanent deletion) date, in seconds since the Unix epoch, or -1 if the key has not been deleted.
PublicKey reflects the key's public key, in PEM format.