Table of Contents

Class ManagedKeySigningServiceCollectionExtensions

Namespace
AsiBackbone.Signing.ManagedKey
Assembly
AsiBackbone.Signing.ManagedKey.dll

Provides dependency injection registration helpers for managed-key signing.

public static class ManagedKeySigningServiceCollectionExtensions
Inheritance
ManagedKeySigningServiceCollectionExtensions
Inherited Members

Methods

AddAsiBackboneManagedKeySigning(IServiceCollection, Action<ManagedKeySigningOptions>)

Adds production-oriented managed-key signing using an already-registered IManagedKeySigningClient.

public static IServiceCollection AddAsiBackboneManagedKeySigning(this IServiceCollection services, Action<ManagedKeySigningOptions> configure)

Parameters

services IServiceCollection
configure Action<ManagedKeySigningOptions>

Returns

IServiceCollection

Remarks

The production-oriented registration fails closed by default because ReturnUnsignedOnFailure defaults to false.

AddAsiBackboneManagedKeySigning(IServiceCollection, Action<ManagedKeySigningOptions>, Func<IServiceProvider, IManagedKeySigningClient>)

Adds production-oriented managed-key signing with a host-owned managed-key client factory.

public static IServiceCollection AddAsiBackboneManagedKeySigning(this IServiceCollection services, Action<ManagedKeySigningOptions> configure, Func<IServiceProvider, IManagedKeySigningClient> clientFactory)

Parameters

services IServiceCollection
configure Action<ManagedKeySigningOptions>
clientFactory Func<IServiceProvider, IManagedKeySigningClient>

Returns

IServiceCollection

Remarks

The production-oriented registration fails closed by default because ReturnUnsignedOnFailure defaults to false.

AddAsiBackboneManagedKeySigningForLocalValidation(IServiceCollection, Action<ManagedKeySigningOptions>)

Adds local-validation managed-key signing using an already-registered IManagedKeySigningClient.

public static IServiceCollection AddAsiBackboneManagedKeySigningForLocalValidation(this IServiceCollection services, Action<ManagedKeySigningOptions> configure)

Parameters

services IServiceCollection
configure Action<ManagedKeySigningOptions>

Returns

IServiceCollection

Remarks

This helper explicitly sets ReturnUnsignedOnFailure to true so samples, tests, and diagnostics can inspect unsigned failure metadata. Do not use this helper as the default production registration unless host policy explicitly routes unsigned failure metadata.

AddAsiBackboneManagedKeySigningForLocalValidation(IServiceCollection, Action<ManagedKeySigningOptions>, Func<IServiceProvider, IManagedKeySigningClient>)

Adds local-validation managed-key signing with a host-owned managed-key client factory.

public static IServiceCollection AddAsiBackboneManagedKeySigningForLocalValidation(this IServiceCollection services, Action<ManagedKeySigningOptions> configure, Func<IServiceProvider, IManagedKeySigningClient> clientFactory)

Parameters

services IServiceCollection
configure Action<ManagedKeySigningOptions>
clientFactory Func<IServiceProvider, IManagedKeySigningClient>

Returns

IServiceCollection

Remarks

This helper explicitly sets ReturnUnsignedOnFailure to true so samples, tests, and diagnostics can inspect unsigned failure metadata. Do not use this helper as the default production registration unless host policy explicitly routes unsigned failure metadata.