Skip to content

MintedKeysBuilderExtensions Class

The single-issuer form of AdoptExistingKeys(string, JsonWebKey[]).

C#
public static class MintedKeysBuilderExtensions

Inheritance System.Object → MintedKeysBuilderExtensions

Methods

MintedKeysBuilderExtensions.AdoptExistingKeys(this IMintedKeysBuilder, JsonWebKey[]) Method

Takes keys the server already signs with into the ring, so that switching to minted keys does not change which key produces on the day it happens.

C#
public static Abblix.Jwt.ExternalKeys.IMintedKeysBuilder AdoptExistingKeys(this Abblix.Jwt.ExternalKeys.IMintedKeysBuilder builder, params Abblix.Jwt.JsonWebKey[] keys);

Parameters

builder IMintedKeysBuilder

The builder the placement returned.

keys JsonWebKey[]

The keys to take, private halves included - the ring seals what it is given, and a key without its private half can be published but cannot sign.

Returns

IMintedKeysBuilder
The same builder, so the PersistRingTo... call follows.

Remarks

The keys go into the ring's default partition (DefaultPartition). This is a migration call and is meant to be deleted once the ring has rotated past the keys it names, but nothing breaks if it is not: keys are taken only until the ring holds its first minted key, so from then on the call does nothing. It goes with its partition, though: when every partition is known at startup, keys adopted into one the ring no longer keeps refuse the start and any opening of a partition. See AdoptedKeys for what adoption does to the ordering.