Skip to content

IKeyRingPartitions Interface

The partitions the key ring keeps current, each refreshed on the ring's schedule.

C#
public interface IKeyRingPartitions

Remarks

With none registered the ring keeps Partitions, which are fixed when the host starts. A server whose issuers come and go while it runs registers its own, answering with the partitions of the issuers it serves now, and opens each new one through OpenAsync(IReadOnlyCollection<string>, CancellationToken) before naming it here: the refresh loop builds a partition it meets for the first time without opening it, so one named before it is opened is served with no key until the loop's next round. Keys adopted into a partition outside Fixed refuse the start and any opening, since no issuer would be served them; with no fixed set, keys adopted into the unnamed partition refuse them, and keys adopted into a named one are taken when it opens.

Properties

IKeyRingPartitions.Fixed Property

Every partition kept for as long as the ring runs, when they are known before anything is served; null when partitions are added while it runs.

C#
System.Collections.Generic.IReadOnlyCollection<string>? Fixed { get; }

Property Value

System.Collections.Generic.IReadOnlyCollection<System.String>

IKeyRingPartitions.Kept Property

The partitions kept now.

C#
System.Collections.Generic.IReadOnlyCollection<string> Kept { get; }

Property Value

System.Collections.Generic.IReadOnlyCollection<System.String>