Bouncy |
public override Task<MimePart> SignAsync( MailboxAddress signer, DigestAlgorithm digestAlgo, Stream content, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | signer is . -or- content is . |
| ArgumentOutOfRangeException | digestAlgo is out of range. |
| NotSupportedException | The specified DigestAlgorithm is not supported by this context. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| CertificateNotFoundException | A signing certificate could not be found for signer. |
| CmsException | An error occurred in the cryptographic message syntax subsystem. |