Table of Contents

Class ReEncryptionOptions

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

Options for batch re-encryption operations.

public sealed class ReEncryptionOptions
Inheritance
ReEncryptionOptions
Inherited Members

Properties

BatchSize

Gets or sets the batch size for processing. Default is 100.

public int BatchSize { get; set; }

Property Value

int

Remarks

Larger batches improve throughput but increase memory usage.

Context

Gets or sets the encryption context for both decryption and encryption.

public EncryptionContext? Context { get; set; }

Property Value

EncryptionContext

Remarks

Contains purpose, tenant ID, and other contextual information.

ContinueOnError

Gets or sets whether to continue on individual item errors. Default is false.

public bool ContinueOnError { get; set; }

Property Value

bool

Remarks

When true, failed items are logged and skipped, allowing the operation to continue. When false, the first error stops processing.

ItemTimeout

Gets or sets the timeout for individual item re-encryption. Default is 30 seconds.

public TimeSpan ItemTimeout { get; set; }

Property Value

TimeSpan

MaxDegreeOfParallelism

Gets or sets the maximum degree of parallelism. Default is 4.

public int MaxDegreeOfParallelism { get; set; }

Property Value

int

Remarks

Set to 1 for sequential processing. Higher values improve throughput but increase load on the key management system.

SourceProviderId

Gets or sets the source provider ID. Null for auto-detect from encrypted data.

public string? SourceProviderId { get; set; }

Property Value

string

Remarks

When null, the appropriate provider is detected from the encrypted data envelope.

TargetProviderId

Gets or sets the target provider ID. Null uses the primary provider.

public string? TargetProviderId { get; set; }

Property Value

string

Remarks

When null, GetPrimary() is used.

VerifyBeforeReEncrypt

Gets or sets whether to verify decryption before re-encryption. Default is true.

public bool VerifyBeforeReEncrypt { get; set; }

Property Value

bool

Remarks

When true, each record is decrypted and verified before re-encryption. This adds overhead but ensures data integrity.