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