Skip to content

ResolveSecretOptions

Namespace: E2E.Engine

public sealed record ResolveSecretOptions : IEquatable<ResolveSecretOptions>

What an engine asks of ResolveSecret beside the value. Upstream’s ResolveSecretOptions.

Inheritance: object

Implements: IEquatable<ResolveSecretOptions>

View source

public Func<string, IReadOnlyList<string>>? Derived { get; init; }

The forms of the plaintext the engine hands to the app in its place, which are redacted wherever the value is.

Value: Func<string, IReadOnlyList<string>>

public Func<string, Task<IReadOnlyList<string>>>? DerivedAsync { get; init; }

The asynchronous form of Derived, for an engine that derives a credential by waiting on something, such as a device. Upstream’s derived may return a promise; C# keeps the synchronous callback and adds this one. When both are set, the forms of both are redacted.

Value: Func<string, Task<IReadOnlyList<string>>>