Class ClientSecretKey
- Namespace
- FoundationaLLM.Common.Models.Authorization
- Assembly
- FoundationaLLM.Common.dll
Represents a key to be shared to or received from the client. This key can be validated by recomputing the hash using the ClientSecret + Salt as input.
public class ClientSecretKey
- Inheritance
-
ClientSecretKey
- Derived
- Inherited Members
- Extension Methods
Properties
ClientSecret
The client secret portion of this key. This is information only supposed to be held in memory for a short period of time and delivered to the customer as quickly as possible.
public required string ClientSecret { get; set; }
Property Value
ClientSecretString
The string representation of the client secret key.
public string ClientSecretString { get; }
Property Value
ContextId
The context identifier this key is associated with.
public required string ContextId { get; set; }
Property Value
Remarks
The context identifier is relative to the FoundationaLLM instance identifier.
Id
The unique identifier of this secret key.
public required string Id { get; set; }
Property Value
InstanceId
The FoundationaLLM instance identifier this key is associated with.
public required string InstanceId { get; set; }
Property Value
Methods
TryParse(string, out ClientSecretKey?)
Tries to parse a ClientSecretKey instance from the given string.
public static bool TryParse(string clientSecretString, out ClientSecretKey? clientSecretKey)
Parameters
clientSecretString
stringThe string representation to be parsed.
clientSecretKey
ClientSecretKeyThe ClientSecretKey that was parsed.