Multipart |
public static MultipartEncrypted Encrypt( OpenPgpContext ctx, IEnumerable<PgpPublicKey> recipients, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. -or- recipients is null. -or- entity is null. |
ArgumentException | One or more of the recipient keys cannot be used for encrypting. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |