Enum LazyMigrationMode
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Controls when lazy migration encrypts plaintext data during normal operations.
public enum LazyMigrationMode
Fields
Both = 3Encrypt plaintext data on both read and write operations.
Provides the fastest migration by encrypting plaintext data whenever it is accessed.
This is the recommended mode for active migration phases when
EncryptionOptions.LazyMigrationEnabledistrue.Disabled = 0Lazy migration is disabled. Plaintext data is not encrypted opportunistically.
OnRead = 1Encrypt plaintext data when reading (opportunistic read-through encryption).
When plaintext data is read, it is encrypted and written back to the store. This provides gradual migration as data is accessed.
Note: This mode incurs additional write operations on reads.
OnWrite = 2Encrypt plaintext data only on write operations.
When data is written, any plaintext fields are encrypted before storage. Reads do not trigger encryption - plaintext is returned as-is.
Remarks
Lazy migration provides opportunistic encryption of plaintext data encountered during normal read/write operations. This enables gradual migration without requiring dedicated batch processing.
Use in conjunction with EncryptionOptions.LazyMigrationEnabled.