Application |
public static ApplicationPkcs7Mime SignAndEncrypt( SecureMimeContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable<MailboxAddress> recipients, MimeEntity entity, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | ctx is . -or- signer is . -or- recipients is . -or- entity is . |
| ObjectDisposedException | entity has been disposed. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| CertificateNotFoundException | A signing certificate could not be found for signer. -or- A certificate could not be found for one or more of the recipients. |
| CmsException | An error occurred in the cryptographic message syntax subsystem. |