SignerSign |
Sign a prepared signature
Sign a document that contains a prepared signature created using AddPreparedSignature(Document, SignatureConfiguration, Stream, OutputOptions). Note that the configuration must be compatible to the configuration used when preparing the signature.public Document SignPreparedSignature( Document document, SignatureConfiguration configuration, Stream stream )
Exception | Condition |
---|---|
LicenseException | The license check has failed. |
IOException | Writing to the stream failed. |
ArgumentException | If the document does not contain a prepared signature created by AddPreparedSignature(Document, SignatureConfiguration, Stream, OutputOptions) |
ArgumentException | If the configuration is invalid, e.g. because the creating provider has been closed. |
RetryException | If an unexpected error occurs that can be resolved by retrying the operation. For example, if a signature service returns an unexpectedly large signature. |
RetryException | If a resource required by the cryptographic provider is temporarily unavailable. |
HttpException | If a network error occurs, e.g. downloading revocation information (OCSP, CRL) or a time-stamp. |
UnsupportedFeatureException | If the cryptographic provider does not support the requested signing algorithm. |
PermissionException | If the cryptographic provider does not allow the signing operation. |
ArgumentNullException | if document is . |
ArgumentNullException | if configuration is . |
ArgumentNullException | if stream is . |