Skip to content

TenantKeyRingClosing Class

Deletes from the key ring's store the keys the server minted for a released tenant.

C#
public sealed class TenantKeyRingClosing : Abblix.Oidc.Server.Features.MultiTenancy.ITenantClosing

Inheritance System.Object → TenantKeyRingClosing

Implements ITenantClosing

Remarks

The partition belongs to that creation of the tenant alone, so a tenant created again under the same id, which mints into a partition of its own generation, keeps its keys. A released tenant whose id or generation could not name a partition of its own was never opened, and the partition its name spells may be another tenant's, so nothing is deleted for it. Keys from the settings or a custodian are not the server's to delete. The ring of the partition was already let go when the tenant was released. The ring and the minting are resolved when a tenant is closed, as TenantKeyRingOpening resolves them when it is opened.

Constructors

TenantKeyRingClosing(IServiceProvider) Constructor

Deletes from the key ring's store the keys the server minted for a released tenant.

C#
public TenantKeyRingClosing(System.IServiceProvider serviceProvider);

Parameters

serviceProvider System.IServiceProvider

Resolves the key ring and tells whether the server mints its keys.

Remarks

The partition belongs to that creation of the tenant alone, so a tenant created again under the same id, which mints into a partition of its own generation, keeps its keys. A released tenant whose id or generation could not name a partition of its own was never opened, and the partition its name spells may be another tenant's, so nothing is deleted for it. Keys from the settings or a custodian are not the server's to delete. The ring of the partition was already let go when the tenant was released. The ring and the minting are resolved when a tenant is closed, as TenantKeyRingOpening resolves them when it is opened.

Methods

TenantKeyRingClosing.CloseAsync(IReadOnlyCollection<TenantDefinition>, CancellationToken) Method

Lets go of what each of tenants kept, each one on its own, so one that fails leaves the others closed.

C#
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Exception>> CloseAsync(System.Collections.Generic.IReadOnlyCollection<Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition> tenants, System.Threading.CancellationToken cancellationToken);

Parameters

tenants System.Collections.Generic.IReadOnlyCollection<TenantDefinition>

The tenants released, each in the creation that was served.

cancellationToken System.Threading.CancellationToken

Cancels the closing.

Implements CloseAsync(IReadOnlyCollection<TenantDefinition>, CancellationToken)

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<TenantDefinition,System.Exception>>
Why each tenant that could not be closed, wholly or in part, was not, by the definition it was handed in; the others are closed.