Interface ISigningKeyStore

Assembly: redb.Identity.Core.dll

Persistent store for OpenIddict signing / encryption keys backed by redb PROPS
(). A3 replaces ephemeral in-memory keys so that
cluster replicas share the same JWKS and tokens survive restarts.

public interface ISigningKeyStore

Methods

EnsureBootstrappedAsync(string, CancellationToken)

Generates an initial active key for the given kind if the store contains no active key.

Task EnsureBootstrappedAsync(string keyKind, CancellationToken ct = default)

GetAllAsync(CancellationToken)

Returns all keys currently in the store with NotAfter still in the future (active + still-valid rotated-out).

Task<ImmutableArray<SigningKeyMaterial>> GetAllAsync(CancellationToken ct = default)

ListAllIncludingRetiredAsync(CancellationToken)

Returns every key row in the store, regardless of whether

Task<ImmutableArray<SigningKeyMaterial>> ListAllIncludingRetiredAsync(CancellationToken ct = default)

RetireAsync(string, CancellationToken)

Immediately ends the validity window of kid by setting NotAfter to "now".

Task<bool> RetireAsync(string kid, CancellationToken ct = default)

RotateAsync(string, CancellationToken)

Generates a fresh key of the given kind and marks every currently-active key of the same kind

Task<SigningKeyMaterial> RotateAsync(string keyKind, CancellationToken ct = default)