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
ValuestringThe secret value. Keep it out of logs.
ExpirationTimeDateTimeOffset?When the value expires, when known.
Properties
ExpirationTime
When the value expires, when known.
public DateTimeOffset? ExpirationTime { get; init; }
Property Value
Value
The secret value. Keep it out of logs.
public string Value { get; init; }
Property Value
Methods
ToString()
Redacts the secret; explicit property access still exposes it.
public override string ToString()