Table of Contents

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

secretName string

The name of the accessed secret.

operation SecretOperation

The type of operation performed.

accessedAt DateTimeOffset

The timestamp when the secret was accessed.

userId string

The 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.