Class ReEncryptionResult
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Result of a single re-encryption operation.
public sealed class ReEncryptionResult
- Inheritance
-
ReEncryptionResult
- Inherited Members
Properties
Duration
Gets the duration of the re-encryption operation.
public TimeSpan Duration { get; init; }
Property Value
ErrorMessage
Gets the error message if the operation failed.
public string? ErrorMessage { get; init; }
Property Value
Exception
Gets the exception if the operation failed.
public Exception? Exception { get; init; }
Property Value
FieldsReEncrypted
Gets the number of fields that were re-encrypted.
public int FieldsReEncrypted { get; init; }
Property Value
SourceProviderId
Gets the source provider ID that was used for decryption.
public string? SourceProviderId { get; init; }
Property Value
Success
Gets a value indicating whether the re-encryption succeeded.
public required bool Success { get; init; }
Property Value
TargetProviderId
Gets the target provider ID that was used for encryption.
public string? TargetProviderId { get; init; }
Property Value
Methods
Failed(string, Exception?)
Creates a failed result.
public static ReEncryptionResult Failed(string errorMessage, Exception? exception = null)
Parameters
Returns
Succeeded(string, string, int, TimeSpan)
Creates a successful result.
public static ReEncryptionResult Succeeded(string sourceProviderId, string targetProviderId, int fieldsReEncrypted, TimeSpan duration)