|  | Open | 
 Syntax
Syntaxpublic override Task<MimeEntity> DecryptAsync( Stream encryptedData, CancellationToken cancellationToken = default )
 Exceptions
Exceptions| Exception | Condition | 
|---|---|
| ArgumentNullException | encryptedData is . | 
| PrivateKeyNotFoundException | The private key could not be found to decrypt the stream. | 
| OperationCanceledException | The user chose to cancel the password prompt. -or- The operation was canceled via the cancellation token. | 
| UnauthorizedAccessException | 3 bad attempts were made to unlock the secret key. | 
| PgpException | An OpenPGP error occurred. | 
 Remarks
Remarks See Also
See Also