LaunchBoxContributors
On this page

PluginCredentialSnapshot14.1

Class in Unbroken.LaunchBox.Plugins.Services.Storage

C#
public sealed class PluginCredentialSnapshot
An immutable, secret-bearing snapshot for conditional credential updates. Never log or persist it.

Constructors

PluginCredentialSnapshot

C#
public PluginCredentialSnapshot(
    PluginStoredConnection connection,
    string revision,
    IReadOnlyDictionary<string, string> values
)
Creates a snapshot for a credential-store implementation.
connection
The saved descriptor.
revision
An opaque store-scoped revision that changes when saved state changes or is recreated.
values
Saved secret values; copied with ordinal value-name comparison.

Properties

  • ConnectionGets the descriptor read with these values.
  • RevisionGets the opaque comparison token. It is not an account identity.
  • ValuesGets the secret values. Do not expose them in diagnostics or presentation.

Connection

C#
public PluginStoredConnection Connection { get; }
Gets the descriptor read with these values.

Revision

C#
public string Revision { get; }
Gets the opaque comparison token. It is not an account identity.

Values

C#
public IReadOnlyDictionary<string, string> Values { get; }
Gets the secret values. Do not expose them in diagnostics or presentation.

Methods

  • GetValueGets a saved value using ordinal name comparison.

GetValue

C#
public string? GetValue(string name)
Gets a saved value using ordinal name comparison.
name
The value name.

Returns

The value, or null when absent.