22.112. 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>
22.112.1. Inheritance
22.112.2. Implements
22.112.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
22.112.4. Constructors
22.112.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 = "")
22.112.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
22.112.5. Properties
22.112.5.1. Cn
Certificate common name
public string Cn { get; }
22.112.5.1.1. Property Value
22.112.5.2. ConnectionId
Id of the connection
public string ConnectionId { get; }
22.112.5.2.1. Property Value
22.112.5.3. Fingerprint
Certificate fingerprint
public string Fingerprint { get; }
22.112.5.3.1. Property Value
22.112.5.4. ImpersonateId
User id to impersonate
public string ImpersonateId { get; }
22.112.5.4.1. Property Value
22.112.5.5. ImpersonateUsername
Username to impersonate
public string ImpersonateUsername { get; }
22.112.5.5.1. Property Value
22.112.6. Methods
22.112.6.1. Equals(AuthenticationCacheKey?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AuthenticationCacheKey? other)
22.112.6.1.1. Parameters
other AuthenticationCacheKey?
An object to compare with this object.
22.112.6.1.2. Returns
true if the current object is equal to the other parameter; otherwise, false.
22.112.6.2. Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
22.112.6.2.1. Parameters
obj object?
The object to compare with the current object.
22.112.6.2.2. Returns
true if the specified object is equal to the current object; otherwise, false.
22.112.6.3. GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
22.112.6.3.1. Returns
A hash code for the current object.