Table of Contents

Class ProviderCredentialValue

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

An exported runtime secret. Its ToString() never reveals the value.

public sealed record ProviderCredentialValue : IEquatable<ProviderCredentialValue>
Inheritance
ProviderCredentialValue
Implements
Inherited Members

Constructors

ProviderCredentialValue(string, DateTimeOffset?)

An exported runtime secret. Its ToString() never reveals the value.

public ProviderCredentialValue(string Value, DateTimeOffset? ExpirationTime = null)

Parameters

Value string

The secret value. Keep it out of logs.

ExpirationTime DateTimeOffset?

When the value expires, when known.

Properties

ExpirationTime

When the value expires, when known.

public DateTimeOffset? ExpirationTime { get; init; }

Property Value

DateTimeOffset?

Value

The secret value. Keep it out of logs.

public string Value { get; init; }

Property Value

string

Methods

ToString()

Redacts the secret; explicit property access still exposes it.

public override string ToString()

Returns

string