RemoteCatalogCredentials
public static class RemoteCatalogCredentialsResolves source credentials from configured environment variables or encrypted local storage, and manages locally saved keys and tokens.
Methods
Section titled “Methods”
HasCredential(string)
Section titled “HasCredential(string)”public static bool HasCredential(string providerId)Indicates whether the selected environment variable or saved credential resolves to a nonempty value; provider access is not validated.
Parameters
| Name | Type |
|---|---|
providerId |
System.String |
Returns
System.Boolean
Resolve(string)
Section titled “Resolve(string)”public static string Resolve(string providerId)Reads the configured environment variable, or decrypts a saved credential when no environment variable is selected; a missing selected variable does not fall back to local storage.
Parameters
| Name | Type |
|---|---|
providerId |
System.String |
Returns
System.String
SetSaved(string, string)
Section titled “SetSaved(string, string)”public static void SetSaved(string providerId, string credential)Encrypts and saves a nonempty source key or token locally and requests cancellation of that source's active operations.
Parameters
| Name | Type |
|---|---|
providerId |
System.String |
credential |
System.String |
Clear(string)
Section titled “Clear(string)”public static void Clear(string providerId)Removes the locally saved source credential and cancels its active operations, leaving configured environment variables unchanged.
Parameters
| Name | Type |
|---|---|
providerId |
System.String |