Table of Contents

Enum KeyStatus

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents the lifecycle status of an encryption key.

public enum KeyStatus

Fields

Active = 0

Key is active and can be used for both encryption and decryption.

DecryptOnly = 1

Key can only be used for decryption (rotated out). New encryptions must use a different key.

Destroyed = 3

Key has been destroyed and cannot be recovered.

PendingDestruction = 2

Key is scheduled for destruction. No operations allowed; awaiting deletion.

Suspended = 4

Key is suspended due to security concerns. Requires administrative action to reactivate or destroy.

A suspended key is unusable for both encryption and decryption (full quarantine) — a stronger posture than DecryptOnly, which blocks only new encryption while keeping existing ciphertext decryptable. Use DecryptOnly when the intent is "stop new encryption but keep reading existing data"; use Suspended when a key is compromised and must be quarantined entirely until an administrator reactivates or destroys it.

Remarks

Keys follow a lifecycle: Active -> Decrypt-Only -> Destroyed. Regular key rotation is required for compliance.