Multipart |
public static Task<MultipartEncrypted> EncryptAsync( OpenPgpContext ctx, IEnumerable<MailboxAddress> recipients, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. -or- recipients is null. -or- entity is null. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
PublicKeyNotFoundException | A public key for one or more of the recipients could not be found. |