Class SecretAccessedEventArgs
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Provides data for the SecretAccessed event.
public sealed class SecretAccessedEventArgs : EventArgs
- Inheritance
-
SecretAccessedEventArgs
- Inherited Members
Remarks
Initializes a new instance of the SecretAccessedEventArgs class.
Constructors
SecretAccessedEventArgs(string, SecretOperation, DateTimeOffset, string?)
Provides data for the SecretAccessed event.
public SecretAccessedEventArgs(string secretName, SecretOperation operation, DateTimeOffset accessedAt, string? userId = null)
Parameters
secretNamestringThe name of the accessed secret.
operationSecretOperationThe type of operation performed.
accessedAtDateTimeOffsetThe timestamp when the secret was accessed.
userIdstringThe identifier of the user or service that accessed the secret.
Remarks
Initializes a new instance of the SecretAccessedEventArgs class.
Properties
AccessedAt
Gets the timestamp when the secret was accessed.
public DateTimeOffset AccessedAt { get; }
Property Value
- DateTimeOffset
The UTC timestamp of the access operation.
Operation
Gets the type of operation performed on the secret.
public SecretOperation Operation { get; }
Property Value
- SecretOperation
The operation that was performed.
SecretName
Gets the name of the accessed secret.
public string SecretName { get; }
Property Value
- string
The unique identifier for the secret that was accessed.
UserId
Gets the identifier of the user or service that accessed the secret.
public string? UserId { get; }
Property Value
- string
The user or service identifier, or null if not available.