Table of Contents

Class BatchSigner.BatchSignerBuilder

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

Immutable builder for BatchSigner.

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

Methods

Build()

Builds the configured batch signer.

public BatchSigner Build()

Returns

BatchSigner

WithChain(IReadOnlyList<X509Certificate2>)

Sets the certificate chain included with every signature.

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

Parameters

chain IReadOnlyList<X509Certificate2>

Returns

BatchSigner.BatchSignerBuilder

WithExternalSigner(IExternalSigner)

Uses an external signer for each document.

public BatchSigner.BatchSignerBuilder WithExternalSigner(IExternalSigner signer)

Parameters

signer IExternalSigner

Returns

BatchSigner.BatchSignerBuilder

WithFieldOptions(SignatureFieldOptions)

Sets the complete PDF signature field configuration.

public BatchSigner.BatchSignerBuilder WithFieldOptions(SignatureFieldOptions fieldOptions)

Parameters

fieldOptions SignatureFieldOptions

Returns

BatchSigner.BatchSignerBuilder

WithHashAlgorithm(HashAlgorithmName)

Sets the signing hash algorithm.

public BatchSigner.BatchSignerBuilder WithHashAlgorithm(HashAlgorithmName algorithm)

Parameters

algorithm HashAlgorithmName

Returns

BatchSigner.BatchSignerBuilder

WithHttpClientProvider(IHttpClientProvider)

Sets the HTTP provider used during enrichment.

public BatchSigner.BatchSignerBuilder WithHttpClientProvider(IHttpClientProvider provider)

Parameters

provider IHttpClientProvider

Returns

BatchSigner.BatchSignerBuilder

WithLevel(AdesBaselineProfile)

Sets the complete ADeS baseline profile.

public BatchSigner.BatchSignerBuilder WithLevel(AdesBaselineProfile profile)

Parameters

profile AdesBaselineProfile

Returns

BatchSigner.BatchSignerBuilder

WithLogger(ILogger)

Sets the logger.

public BatchSigner.BatchSignerBuilder WithLogger(ILogger logger)

Parameters

logger ILogger

Returns

BatchSigner.BatchSignerBuilder

WithMaxConcurrency(int)

Sets the maximum concurrent terminal operations.

public BatchSigner.BatchSignerBuilder WithMaxConcurrency(int maxConcurrency)

Parameters

maxConcurrency int

Returns

BatchSigner.BatchSignerBuilder

WithOperationId(string)

Sets the operation identifier passed to external signers.

public BatchSigner.BatchSignerBuilder WithOperationId(string operationId)

Parameters

operationId string

Returns

BatchSigner.BatchSignerBuilder

WithSignatureAlgorithm(string)

Sets the signature algorithm OID.

public BatchSigner.BatchSignerBuilder WithSignatureAlgorithm(string signatureAlgorithmOid)

Parameters

signatureAlgorithmOid string

Returns

BatchSigner.BatchSignerBuilder