TsgcWSAPIKeyManagerMethods › IsRevoked

IsRevoked Method

Returns True if the key is revoked.

Syntax

function IsRevoked(const aKey: string): Boolean;

Parameters

NameTypeDescription
aKeyconst stringRaw plaintext key to query (re-hashed internally).

Return Value

True when the stored entry exists and its status is kksRevoked. False when the key is unknown, active, expired or rotated. (Boolean)

Remarks

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.

Example

ButtonReinstate.Enabled := sgcWSAPIKeyManager1.IsRevoked(vKey);

Back to Methods