17.118. Class AuthenticationCacheKey
Namespace: ArmoniK.Core.Common.Auth.Authentication
Assembly: ArmoniK.Core.Common.dll
Class used as the key for the authentication cache
public sealed class AuthenticationCacheKey : IEquatable<AuthenticationCacheKey>
17.118.1. Inheritance
17.118.2. Implements
17.118.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
17.118.4. Constructors
17.118.4.1. AuthenticationCacheKey(string, string?, string?, string?, string?)
Creates an authentication cache key from request headers
public AuthenticationCacheKey(string connectionId, string? cn = "", string? fingerprint = "", string? impersonateId = "", string? impersonateUsername = "")
17.118.4.1.1. Parameters
connectionId string
Connection id
cn string?
Certificate Common Name
fingerprint string?
Certificate fingerprint
impersonateId string?
User Id to impersonate
impersonateUsername string?
Username to impersonate
17.118.5. Properties
17.118.5.1. Cn
Certificate common name
public string Cn { get; }
17.118.5.1.1. Property Value
17.118.5.2. ConnectionId
Id of the connection
public string ConnectionId { get; }
17.118.5.2.1. Property Value
17.118.5.3. Fingerprint
Certificate fingerprint
public string Fingerprint { get; }
17.118.5.3.1. Property Value
17.118.5.4. ImpersonateId
User id to impersonate
public string ImpersonateId { get; }
17.118.5.4.1. Property Value
17.118.5.5. ImpersonateUsername
Username to impersonate
public string ImpersonateUsername { get; }
17.118.5.5.1. Property Value
17.118.6. Methods
17.118.6.1. Equals(AuthenticationCacheKey?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AuthenticationCacheKey? other)
17.118.6.1.1. Parameters
other AuthenticationCacheKey?
An object to compare with this object.
17.118.6.1.2. Returns
true if the current object is equal to the other parameter; otherwise, false.
17.118.6.2. Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
17.118.6.2.1. Parameters
obj object?
The object to compare with the current object.
17.118.6.2.2. Returns
true if the specified object is equal to the current object; otherwise, false.
17.118.6.3. GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
17.118.6.3.1. Returns
A hash code for the current object.