Table of Contents

Class KeyDurabilityOptions

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.dll

Options governing whether encryption may run on a key provider that does not survive a restart.

public sealed class KeyDurabilityOptions
Inheritance
KeyDurabilityOptions
Inherited Members

Properties

AllowVolatileKeyProvider

Gets or sets a value indicating whether a volatile (in-memory) key management provider is permitted.

public bool AllowVolatileKeyProvider { get; set; }

Property Value

bool

false — the default — states that this host expects a durable key provider. true permits volatile keys, and anything encrypted under them becomes unrecoverable when the process exits. When compliance encryption is composed, a startup gate verifies the registered provider against this value and fails fast if a volatile provider is present while this is false.

Remarks

The default is the protective value, and it is what a host gets by saying nothing. This asymmetry is deliberate: the cost of wrongly requiring durability is a startup error a developer fixes in a minute, and the cost of wrongly allowing volatility is ciphertext nobody can ever read again. Those are not comparable, so the silent path is the recoverable one.

Set this only for development and test hosts, where losing the keys on exit is the intended behaviour rather than an accident.