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
classificationElasticSearchDataClassificationThe data classification level that was rotated.
newKeyVersionstringThe version of the new encryption key.
previousKeyVersionstringThe version of the previous encryption key.
affectedDocumentCountintThe number of documents that were re-encrypted.
rotatedAtDateTimeOffsetThe 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.