Table of Contents

Class RefreshConfig

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

Configures gateway-owned refresh for a credential.

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

Properties

CredentialKey

Credential key.

public required string CredentialKey { get; init; }

Property Value

string

ExpiresAt

Current credential expiration, when known.

public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

Material

Strategy inputs. Treated as secret: never printed by ToString().

public IReadOnlyDictionary<string, string> Material { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Provider

Provider name.

public required string Provider { get; init; }

Property Value

string

RequestId

Idempotency key.

public string? RequestId { get; init; }

Property Value

string

SecretMaterialKeys

Additional material names to store as secrets; each must be present in Material.

public IReadOnlyList<string>? SecretMaterialKeys { get; init; }

Property Value

IReadOnlyList<string>

Strategy

Strategy.

public RefreshStrategy Strategy { get; init; }

Property Value

RefreshStrategy

Methods

ToString()

Describes the configuration without printing refresh material.

public override string ToString()

Returns

string