Class ElasticsearchSecurityContext
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Represents the current Elasticsearch security context including authentication state and active security policies.
public sealed class ElasticsearchSecurityContext
- Inheritance
-
ElasticsearchSecurityContext
- Inherited Members
Properties
ActivePolicies
Gets the collection of active security policies applied to this context.
public IReadOnlySet<string> ActivePolicies { get; init; }
Property Value
- IReadOnlySet<string>
The set of active security policy names.
AuthenticationType
Gets or sets the authentication type in use.
public ElasticsearchAuthenticationType AuthenticationType { get; set; }
Property Value
EstablishedAt
Gets or sets the time the security context was established.
public DateTimeOffset EstablishedAt { get; set; }
Property Value
- DateTimeOffset
The timestamp when the context was created.
ExpiresAt
Gets or sets the time the security context expires.
public DateTimeOffset? ExpiresAt { get; set; }
Property Value
- DateTimeOffset?
The expiration timestamp, or null if no expiration.
IsAuthenticated
Gets or sets a value indicating whether the current session is authenticated.
public bool IsAuthenticated { get; set; }
Property Value
PrincipalId
Gets or sets the authenticated principal identity.
public string? PrincipalId { get; set; }
Property Value
SecurityMode
Gets or sets the active security mode.
public SecurityMode SecurityMode { get; set; }
Property Value
- SecurityMode
The current SecurityMode.