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
WithChain(IReadOnlyList<X509Certificate2>)
Sets the certificate chain included with every signature.
public BatchSigner.BatchSignerBuilder WithChain(IReadOnlyList<X509Certificate2> chain)
Parameters
chainIReadOnlyList<X509Certificate2>
Returns
WithExternalSigner(IExternalSigner)
Uses an external signer for each document.
public BatchSigner.BatchSignerBuilder WithExternalSigner(IExternalSigner signer)
Parameters
signerIExternalSigner
Returns
WithFieldOptions(SignatureFieldOptions)
Sets the complete PDF signature field configuration.
public BatchSigner.BatchSignerBuilder WithFieldOptions(SignatureFieldOptions fieldOptions)
Parameters
fieldOptionsSignatureFieldOptions
Returns
WithHashAlgorithm(HashAlgorithmName)
Sets the signing hash algorithm.
public BatchSigner.BatchSignerBuilder WithHashAlgorithm(HashAlgorithmName algorithm)
Parameters
algorithmHashAlgorithmName
Returns
WithHttpClientProvider(IHttpClientProvider)
Sets the HTTP provider used during enrichment.
public BatchSigner.BatchSignerBuilder WithHttpClientProvider(IHttpClientProvider provider)
Parameters
providerIHttpClientProvider
Returns
WithLevel(AdesBaselineProfile)
Sets the complete ADeS baseline profile.
public BatchSigner.BatchSignerBuilder WithLevel(AdesBaselineProfile profile)
Parameters
profileAdesBaselineProfile
Returns
WithLogger(ILogger)
Sets the logger.
public BatchSigner.BatchSignerBuilder WithLogger(ILogger logger)
Parameters
loggerILogger
Returns
WithMaxConcurrency(int)
Sets the maximum concurrent terminal operations.
public BatchSigner.BatchSignerBuilder WithMaxConcurrency(int maxConcurrency)
Parameters
maxConcurrencyint
Returns
WithOperationId(string)
Sets the operation identifier passed to external signers.
public BatchSigner.BatchSignerBuilder WithOperationId(string operationId)
Parameters
operationIdstring
Returns
WithSignatureAlgorithm(string)
Sets the signature algorithm OID.
public BatchSigner.BatchSignerBuilder WithSignatureAlgorithm(string signatureAlgorithmOid)
Parameters
signatureAlgorithmOidstring