Table of Contents

Class BatchSigner.BatchSignerBuilder

Namespace
SimpleSign.PAdES.Signing
Assembly
SimpleSign.PAdES.dll

Builder for configuring a BatchSigner.

public sealed class BatchSigner.BatchSignerBuilder
Inheritance
BatchSigner.BatchSignerBuilder
Inherited Members

Methods

Build()

Builds the BatchSigner instance.

public BatchSigner Build()

Returns

BatchSigner

WithAppearance(SignatureAppearance)

Configures visual signature appearance.

public BatchSigner.BatchSignerBuilder WithAppearance(SignatureAppearance appearance)

Parameters

appearance SignatureAppearance

Returns

BatchSigner.BatchSignerBuilder

WithArchivalTimestamp(string)

Enables archival timestamp (PAdES-B-LTA). Implies LTV.

public BatchSigner.BatchSignerBuilder WithArchivalTimestamp(string tsaUrl)

Parameters

tsaUrl string

Returns

BatchSigner.BatchSignerBuilder

WithChain(IReadOnlyList<X509Certificate2>)

Sets the certificate chain for LTV embedding.

public BatchSigner.BatchSignerBuilder WithChain(IReadOnlyList<X509Certificate2> chain)

Parameters

chain IReadOnlyList<X509Certificate2>

Returns

BatchSigner.BatchSignerBuilder

WithExternalSigner(Func<byte[], Task<byte[]>>, string?)

Uses an external signer (A3 token, HSM, cloud KMS).

public BatchSigner.BatchSignerBuilder WithExternalSigner(Func<byte[], Task<byte[]>> signer, string? signatureAlgorithmOid = null)

Parameters

signer Func<byte[], Task<byte[]>>
signatureAlgorithmOid string

Returns

BatchSigner.BatchSignerBuilder

WithHashAlgorithm(HashAlgorithmName)

Configures the hash algorithm. Default: SHA-256.

public BatchSigner.BatchSignerBuilder WithHashAlgorithm(HashAlgorithmName algorithm)

Parameters

algorithm HashAlgorithmName

Returns

BatchSigner.BatchSignerBuilder

WithHttpClientProvider(IHttpClientProvider)

Configures the HTTP client provider.

public BatchSigner.BatchSignerBuilder WithHttpClientProvider(IHttpClientProvider provider)

Parameters

provider IHttpClientProvider

Returns

BatchSigner.BatchSignerBuilder

WithLogger(ILogger)

Sets the logger for diagnostic output.

public BatchSigner.BatchSignerBuilder WithLogger(ILogger logger)

Parameters

logger ILogger

Returns

BatchSigner.BatchSignerBuilder

WithLtv()

Enables LTV (Long-Term Validation) with DSS embedding.

public BatchSigner.BatchSignerBuilder WithLtv()

Returns

BatchSigner.BatchSignerBuilder

WithMaxConcurrency(int)

Sets maximum concurrent signing operations. Default: 4.

public BatchSigner.BatchSignerBuilder WithMaxConcurrency(int maxConcurrency)

Parameters

maxConcurrency int

Returns

BatchSigner.BatchSignerBuilder

WithMetadata(string?, string?, string?)

Configures signer metadata.

public BatchSigner.BatchSignerBuilder WithMetadata(string? signerName = null, string? reason = null, string? location = null)

Parameters

signerName string
reason string
location string

Returns

BatchSigner.BatchSignerBuilder

WithTimestamp(string)

Configures TSA URL for timestamping.

public BatchSigner.BatchSignerBuilder WithTimestamp(string tsaUrl)

Parameters

tsaUrl string

Returns

BatchSigner.BatchSignerBuilder