Table of Contents

Class AuthenticationFailedEventArgs

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

Provides data for the AuthenticationFailed event.

public sealed class AuthenticationFailedEventArgs : EventArgs
Inheritance
AuthenticationFailedEventArgs
Inherited Members

Remarks

Initializes a new instance of the AuthenticationFailedEventArgs class.

Constructors

AuthenticationFailedEventArgs(ElasticsearchAuthenticationType, string, DateTimeOffset, int)

Provides data for the AuthenticationFailed event.

public AuthenticationFailedEventArgs(ElasticsearchAuthenticationType authenticationType, string failureReason, DateTimeOffset failedAt, int consecutiveFailures)

Parameters

authenticationType ElasticsearchAuthenticationType

The type of authentication that failed.

failureReason string

The reason for the authentication failure.

failedAt DateTimeOffset

The timestamp when the failure occurred.

consecutiveFailures int

The number of consecutive failures for this authentication type.

Remarks

Initializes a new instance of the AuthenticationFailedEventArgs class.

Properties

AuthenticationType

Gets the type of authentication that failed.

public ElasticsearchAuthenticationType AuthenticationType { get; }

Property Value

ElasticsearchAuthenticationType

The authentication method that failed validation.

ConsecutiveFailures

Gets the number of consecutive failures for this authentication type.

public int ConsecutiveFailures { get; }

Property Value

int

The count of consecutive authentication failures, useful for security monitoring.

FailedAt

Gets the timestamp when the failure occurred.

public DateTimeOffset FailedAt { get; }

Property Value

DateTimeOffset

The UTC timestamp of the authentication failure.

FailureReason

Gets the reason for the authentication failure.

public string FailureReason { get; }

Property Value

string

A descriptive message explaining why authentication failed.