Class PersistedSecretKey
- Namespace
- FoundationaLLM.Common.Models.Authorization
- Assembly
- FoundationaLLM.Common.dll
Represents a persisted secret key.
public class PersistedSecretKey : SecretKey
- Inheritance
-
PersistedSecretKey
- Inherited Members
- Extension Methods
Properties
Hash
Gets or sets the hash of the secret key.
[JsonIgnore]
public string? Hash { get; set; }
Property Value
Remarks
The hash is computed by applying the hashing algorithm to the secret key and the salt.
HashKeyVaultSecretName
Gets the name of the key vault secret that stores the hash.
[JsonIgnore]
public string HashKeyVaultSecretName { get; }
Property Value
Salt
Gets or sets the salt used in the computation of the hash.
[JsonIgnore]
public string? Salt { get; set; }
Property Value
Remarks
The salt is a random value that is used to protect against dictionary attacks. It is generated once and stored with the secret key in a Base58 encoded format.
SaltKeyVaultSecretName
Gets the name of the key vault secret that stores the salt.
[JsonIgnore]
public string SaltKeyVaultSecretName { get; }