Class PrefixKeyVaultSecretManager
Interprets key vault naming convention to settings naming convention for the web crash download/admin portal.
Inheritance
System.Object
PrefixKeyVaultSecretManager
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.KeyVault.dll
Syntax
public class PrefixKeyVaultSecretManager : IKeyVaultSecretManager
Constructors
View SourcePrefixKeyVaultSecretManager(String)
Initializes a new instance of the PrefixKeyVaultSecretManager class.
Declaration
public PrefixKeyVaultSecretManager(string prefix)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | prefix | The prefix that must be used by key vault settings in order for the settings to be persisted in settings. |
Methods
View SourceGetKey(SecretBundle)
Gets the interpreted name of the key vault secret.
Declaration
public string GetKey(SecretBundle secret)
Parameters
| Type | Name | Description |
|---|---|---|
| SecretBundle | secret | The secret. |
Returns
| Type | Description |
|---|---|
| System.String | The interpreted name. |
Load(SecretItem)
Determines if a key vault secret should be loaded.
Declaration
public bool Load(SecretItem secret)
Parameters
| Type | Name | Description |
|---|---|---|
| SecretItem | secret | The secret. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the secret should be loaded. Otherwise false. |