TsgcWSAPIKeyManager › Methods › IsRevoked
Returns True if the key is revoked.
function IsRevoked(const aKey: string): Boolean;
| Name | Type | Description |
|---|---|---|
aKey | const string | Raw plaintext key to query (re-hashed internally). |
True when the stored entry exists and its status is kksRevoked. False when the key is unknown, active, expired or rotated. (Boolean)
Pure status lookup — no side effects, no audit entry. Useful for UI states ("show Reinstate button when revoked, show Rotate button otherwise") and for custom business rules inside OnValidation. Does not re-run the full ValidateKey pipeline; use ValidateKey itself when you need the combined answer covering expiry, scope, IP and OnValidation veto.
ButtonReinstate.Enabled := sgcWSAPIKeyManager1.IsRevoked(vKey);