ISecure |
Task<ApplicationPkcs7Mime> EncapsulatedSignAsync( MailboxAddress signer, DigestAlgorithm digestAlgo, Stream content, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | signer is null. -or- content is null. |
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. |