IMultipart |
MimeEntity Decrypt( OpenPgpContext ctx, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | ctx is . |
| FormatException | The protocol parameter was not specified. -or- The multipart is malformed in some way. |
| NotSupportedException | The provided OpenPgpContext does not support the protocol parameter. |
| PrivateKeyNotFoundException | The private key could not be found to decrypt the encrypted data. |
| ObjectDisposedException | The IMultipartEncrypted has been disposed. |
| OperationCanceledException | The user chose to cancel the password prompt. -or- The operation was cancelled via the cancellation token. |
| UnauthorizedAccessException | 3 bad attempts were made to unlock the secret key. |