Table of Contents

Codeunit "App Key Vault Secret Provider"

ID 3800
Namespace: System.Security

Exposes functionality to retrieve app secrets from the key vault that is specified in the app's manifest file.

Implements

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

TryInitializeFromCurrentApp

Identifies the calling app and initializes the codeunit with the app's key vaults.

[TryFunction]
[NonDebuggable]
procedure TryInitializeFromCurrentApp(): Boolean

Returns

Type Description
Boolean

GetSecret

Retrieves a secret value from one of the app's key vaults.

[NonDebuggable]
procedure GetSecret(SecretName: Text, var SecretValue: Text): Boolean

Parameters

Name Type Description
SecretName Text

The name of the secret to retrieve.

SecretValue Text

The value of the secret, or the empty string if the value could not be retrieved.

Returns

Type Description
Boolean

True if the secret value could be retrieved; false otherwise.

GetSecret

Retrieves a secret value from one of the app's key vaults.

[NonDebuggable]
procedure GetSecret(SecretName: Text, var SecretValue: SecretText): Boolean

Parameters

Name Type Description
SecretName Text

The name of the secret to retrieve.

SecretValue SecretText

SecretText containing the value of the secret, or the empty string if the value could not be retrieved.

Returns

Type Description
Boolean

True if the secret value could be retrieved; false otherwise.

See also