Table of Contents

Class ProviderMigrationAuditEvents

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

Factory methods for creating provider migration audit events.

public static class ProviderMigrationAuditEvents
Inheritance
ProviderMigrationAuditEvents
Inherited Members

Remarks

Provider migration operations generate audit events for:

  • Data re-encryption operations (algorithm/key changes)
  • Provider migration completion
  • Decryption migration completion

These events support SOC 2 compliance by providing evidence of:

  • CC6.6 - Encryption key management and rotation
  • CC7.2 - System change monitoring

Methods

DataReEncrypted(string, string, string, string, string, string, string, string, string, string?)

Creates an audit event for a data re-encryption operation.

public static AuditEvent DataReEncrypted(string sourceProvider, string targetProvider, string sourceAlgorithm, string targetAlgorithm, string sourceKeyId, string targetKeyId, string resourceId, string resourceType, string actorId, string? correlationId = null)

Parameters

sourceProvider string

The source encryption provider being migrated from.

targetProvider string

The target encryption provider being migrated to.

sourceAlgorithm string

The encryption algorithm used by the source provider.

targetAlgorithm string

The encryption algorithm used by the target provider.

sourceKeyId string

The key identifier used by the source provider.

targetKeyId string

The key identifier used by the target provider.

resourceId string

The identifier of the resource being re-encrypted.

resourceType string

The type of resource being re-encrypted.

actorId string

The actor who initiated the re-encryption.

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the data re-encryption.

DecryptionMigrationCompleted(string, long, long, long, TimeSpan, string, string?, string?)

Creates an audit event for a decryption migration completion.

public static AuditEvent DecryptionMigrationCompleted(string sourceProvider, long recordCount, long successCount, long failedCount, TimeSpan duration, string actorId, string? reason = null, string? correlationId = null)

Parameters

sourceProvider string

The provider from which data was decrypted.

recordCount long

The number of records processed.

successCount long

The number of records successfully decrypted.

failedCount long

The number of records that failed to decrypt.

duration TimeSpan

The total duration of the decryption migration.

actorId string

The actor who initiated the decryption migration.

reason string

The reason for the decryption migration.

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the decryption migration completion.

ProviderMigrationCompleted(string, string, long, long, long, TimeSpan, string, string?)

Creates an audit event for a provider migration completion.

public static AuditEvent ProviderMigrationCompleted(string sourceProvider, string targetProvider, long migratedCount, long failedCount, long skippedCount, TimeSpan duration, string actorId, string? correlationId = null)

Parameters

sourceProvider string

The source provider that was migrated from.

targetProvider string

The target provider that was migrated to.

migratedCount long

The number of records successfully migrated.

failedCount long

The number of records that failed to migrate.

skippedCount long

The number of records that were skipped.

duration TimeSpan

The total duration of the migration.

actorId string

The actor who initiated the migration.

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the provider migration completion.