TsgcWSAPIKeyManager › Events

TsgcWSAPIKeyManager Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Key lifecycle

NameDescription
OnKeyIssuedFired when a new key has been issued; carries the owner, plaintext key and scopes.
OnKeyValidatedFired every time ValidateKey completes; carries the key, an aValid flag and the reason.
OnKeyRevokedFired when a key has been revoked; carries the key and revocation reason.
OnKeyRotatedFired when a key has been rotated; carries both the old and the new key.
OnKeyExpiredFired by the background sweep when a key has expired (or NotifyBeforeExpirySec earlier).
OnValidationFinal decision hook fired during ValidateKey; set Allow := False to reject a valid key.

Audit

NameDescription
OnAuditEventFired for every audit entry; carries the full TsgcAPIKeyAuditEntry for SIEM forwarding.

All Events (alphabetical)

NameDescription
OnAuditEventFired for every audit entry; carries the full TsgcAPIKeyAuditEntry for SIEM forwarding.
OnKeyExpiredFired by the background sweep when a key has expired (or NotifyBeforeExpirySec earlier).
OnKeyIssuedFired when a new key has been issued; carries the owner, plaintext key and scopes.
OnKeyRevokedFired when a key has been revoked; carries the key and revocation reason.
OnKeyRotatedFired when a key has been rotated; carries both the old and the new key.
OnKeyValidatedFired every time ValidateKey completes; carries the key, an aValid flag and the reason.
OnValidationFinal decision hook fired during ValidateKey; set Allow := False to reject a valid key.