Table of Contents

Class LocalDevelopmentSigningOptions

Namespace
AsiBackbone.Signing.LocalDevelopment
Assembly
AsiBackbone.Signing.LocalDevelopment.dll

Configures the local-development signing provider.

public sealed class LocalDevelopmentSigningOptions
Inheritance
LocalDevelopmentSigningOptions
Inherited Members

Remarks

This provider is intended for local development, samples, and tests. It is not a production managed-key provider and does not create tamper-evidence by itself.

Fields

DefaultKeyId

Gets the default local-development key identifier.

public const string DefaultKeyId = "local-dev-key"

Field Value

string

DefaultKeySizeBits

Gets the default RSA key size for generated local-development keys.

public const int DefaultKeySizeBits = 2048

Field Value

int

DefaultKeyVersion

Gets the default local-development key version.

public const string DefaultKeyVersion = "dev"

Field Value

string

DefaultProviderName

Gets the default provider descriptor returned in signing metadata.

public const string DefaultProviderName = "local-development"

Field Value

string

DefaultSignatureAlgorithm

Gets the default provider-neutral signature algorithm descriptor.

public const string DefaultSignatureAlgorithm = "RSASSA-PKCS1-v1_5-SHA256-LOCAL-DEV"

Field Value

string

Properties

KeyId

Gets or sets the local-development key identifier returned in signing metadata.

public string KeyId { get; set; }

Property Value

string

KeySizeBits

Gets or sets the generated RSA key size in bits.

public int KeySizeBits { get; set; }

Property Value

int

KeyVersion

Gets or sets the local-development key version returned in signing metadata.

public string KeyVersion { get; set; }

Property Value

string

ProviderName

Gets or sets the provider descriptor returned in signing metadata.

public string ProviderName { get; set; }

Property Value

string

ReturnUnsignedOnFailure

Gets or sets a value indicating whether signing failures should return unsigned metadata with explicit failure details instead of throwing during normal signing flow.

public bool ReturnUnsignedOnFailure { get; set; }

Property Value

bool

SignatureAlgorithm

Gets or sets the signature algorithm descriptor returned in signing metadata.

public string SignatureAlgorithm { get; set; }

Property Value

string

Methods

Create(string?, string?, string?, string?, int, bool)

Creates options for the local-development signing provider.

public static LocalDevelopmentSigningOptions Create(string? providerName = null, string? keyId = null, string? keyVersion = null, string? signatureAlgorithm = null, int keySizeBits = 2048, bool returnUnsignedOnFailure = true)

Parameters

providerName string
keyId string
keyVersion string
signatureAlgorithm string
keySizeBits int
returnUnsignedOnFailure bool

Returns

LocalDevelopmentSigningOptions