Skip to content

RemoteCatalogCredentials

ClassAssetInventoryAssetInventory.Editor
public static class RemoteCatalogCredentials

Resolves source credentials from configured environment variables or encrypted local storage, and manages locally saved keys and tokens.

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

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

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
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