Table of Contents

Class EncryptionKeyRotatedEventArgs

Namespace
Excalibur.Data.ElasticSearch.Security
Assembly
Excalibur.Data.ElasticSearch.dll

Provides data for the EncryptionKeyRotated event.

public sealed class EncryptionKeyRotatedEventArgs : EventArgs
Inheritance
EncryptionKeyRotatedEventArgs
Inherited Members

Remarks

Initializes a new instance of the EncryptionKeyRotatedEventArgs class.

Constructors

EncryptionKeyRotatedEventArgs(ElasticSearchDataClassification, string, string, int, DateTimeOffset)

Provides data for the EncryptionKeyRotated event.

public EncryptionKeyRotatedEventArgs(ElasticSearchDataClassification classification, string newKeyVersion, string previousKeyVersion, int affectedDocumentCount, DateTimeOffset rotatedAt)

Parameters

classification ElasticSearchDataClassification

The data classification level that was rotated.

newKeyVersion string

The version of the new encryption key.

previousKeyVersion string

The version of the previous encryption key.

affectedDocumentCount int

The number of documents that were re-encrypted.

rotatedAt DateTimeOffset

The timestamp when the key rotation occurred.

Remarks

Initializes a new instance of the EncryptionKeyRotatedEventArgs class.

Properties

AffectedDocumentCount

Gets the number of documents that were re-encrypted with the new key.

public int AffectedDocumentCount { get; }

Property Value

int

The count of documents affected by the key rotation.

Classification

Gets the data classification level that was rotated.

public ElasticSearchDataClassification Classification { get; }

Property Value

ElasticSearchDataClassification

The classification level for which keys were rotated.

NewKeyVersion

Gets the version of the new encryption key.

public string NewKeyVersion { get; }

Property Value

string

The version identifier for the new key.

PreviousKeyVersion

Gets the version of the previous encryption key.

public string PreviousKeyVersion { get; }

Property Value

string

The version identifier for the previous key.

RotatedAt

Gets the timestamp when the key rotation occurred.

public DateTimeOffset RotatedAt { get; }

Property Value

DateTimeOffset

The UTC timestamp of the key rotation operation.