TsgcWSAPIKeyManager › Events
TsgcWSAPIKeyManager Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
Key lifecycle
| Name | Description |
| OnKeyIssued | Fired when a new key has been issued; carries the owner, plaintext key and scopes. |
| OnKeyValidated | Fired every time ValidateKey completes; carries the key, an aValid flag and the reason. |
| OnKeyRevoked | Fired when a key has been revoked; carries the key and revocation reason. |
| OnKeyRotated | Fired when a key has been rotated; carries both the old and the new key. |
| OnKeyExpired | Fired by the background sweep when a key has expired (or NotifyBeforeExpirySec earlier). |
| OnValidation | Final decision hook fired during ValidateKey; set Allow := False to reject a valid key. |
Audit
| Name | Description |
| OnAuditEvent | Fired for every audit entry; carries the full TsgcAPIKeyAuditEntry for SIEM forwarding. |
All Events (alphabetical)
| Name | Description |
| OnAuditEvent | Fired for every audit entry; carries the full TsgcAPIKeyAuditEntry for SIEM forwarding. |
| OnKeyExpired | Fired by the background sweep when a key has expired (or NotifyBeforeExpirySec earlier). |
| OnKeyIssued | Fired when a new key has been issued; carries the owner, plaintext key and scopes. |
| OnKeyRevoked | Fired when a key has been revoked; carries the key and revocation reason. |
| OnKeyRotated | Fired when a key has been rotated; carries both the old and the new key. |
| OnKeyValidated | Fired every time ValidateKey completes; carries the key, an aValid flag and the reason. |
| OnValidation | Final decision hook fired during ValidateKey; set Allow := False to reject a valid key. |