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
DefaultKeySizeBits
Gets the default RSA key size for generated local-development keys.
public const int DefaultKeySizeBits = 2048
Field Value
DefaultKeyVersion
Gets the default local-development key version.
public const string DefaultKeyVersion = "dev"
Field Value
DefaultProviderName
Gets the default provider descriptor returned in signing metadata.
public const string DefaultProviderName = "local-development"
Field Value
DefaultSignatureAlgorithm
Gets the default provider-neutral signature algorithm descriptor.
public const string DefaultSignatureAlgorithm = "RSASSA-PKCS1-v1_5-SHA256-LOCAL-DEV"
Field Value
Properties
KeyId
Gets or sets the local-development key identifier returned in signing metadata.
public string KeyId { get; set; }
Property Value
KeySizeBits
Gets or sets the generated RSA key size in bits.
public int KeySizeBits { get; set; }
Property Value
KeyVersion
Gets or sets the local-development key version returned in signing metadata.
public string KeyVersion { get; set; }
Property Value
ProviderName
Gets or sets the provider descriptor returned in signing metadata.
public string ProviderName { get; set; }
Property Value
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
SignatureAlgorithm
Gets or sets the signature algorithm descriptor returned in signing metadata.
public string SignatureAlgorithm { get; set; }
Property Value
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
providerNamestringkeyIdstringkeyVersionstringsignatureAlgorithmstringkeySizeBitsintreturnUnsignedOnFailurebool