Interface IAzureKeyVaultService
- Namespace
- FoundationaLLM.Common.Services
- Assembly
- FoundationaLLM.Common.dll
Provides access to and management of Azure Key Vault.
public interface IAzureKeyVaultService
- Extension Methods
Properties
KeyVaultUri
Gets the URI of the Key Vault.
string KeyVaultUri { get; }
Property Value
Methods
CheckKeyVaultSecretsExistAsync(IEnumerable<string?>)
Returns a map of secret names and whether they exist in Key Vault.
Task<Dictionary<string, bool>> CheckKeyVaultSecretsExistAsync(IEnumerable<string?> secretNames)
Parameters
secretNames
IEnumerable<string>The list of secret names to check.
Returns
- Task<Dictionary<string, bool>>
CheckSecretExistsAsync(string)
Returns whether a secret exists in Key Vault.
Task<bool> CheckSecretExistsAsync(string secretName)
Parameters
secretName
stringThe secret name to check.
Returns
GetSecretValue(string)
Gets the value of a secret from Key Vault.
string? GetSecretValue(string secretName)
Parameters
secretName
stringThe name of the secret whose value you wish to retrieve.
Returns
GetSecretValueAsync(string)
Gets the value of a secret from Key Vault.
Task<string?> GetSecretValueAsync(string secretName)
Parameters
secretName
stringThe name of the secret whose value you wish to retrieve.
Returns
RemoveSecretAsync(string)
Removes the specified secret from the Key Vault.
Task RemoveSecretAsync(string secretName)
Parameters
secretName
stringThe name of the secret to be removed.
Returns
SetSecretValueAsync(string, string)
Sets the value of a secret in Key Vault.
Task SetSecretValueAsync(string secretName, string secretValue)
Parameters
secretName
stringThe name of the secret whose value you wish to set.
secretValue
stringThe secret value.