Table of Contents

Codeunit "In Memory Secret Provider"

ID 3802
Namespace: System.Security

An in-memory secret provider that can be populated with secrets from any source.

Implements

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

AddSecret

Adds a secret to the secret provider. If the secret is already present in the secret provider, its value will be overwritten.

[NonDebuggable]
procedure AddSecret(SecretName: Text, SecretValue: Text)

Parameters

Name Type Description
SecretName Text

The name of the secret.

SecretValue Text

The value of the secret.

GetSecret

Retrieves a secret value from the secret provider.

[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 the secret provider.

[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