Verifies that the incoming stream is signed from a trusted sender.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public bool VerifyStream( Stream dataFileStream, KeyStore keyStore, Stream outputFileStream ) |
| Visual Basic |
|---|
Public Function VerifyStream ( _ dataFileStream As Stream, _ keyStore As KeyStore, _ outputFileStream As Stream _ ) As Boolean |
| Visual C++ |
|---|
public: bool VerifyStream( Stream^ dataFileStream, KeyStore^ keyStore, Stream^ outputFileStream ) |
Parameters
- dataFileStream
- Type: System.IO..::..Stream
Input stream from the File to be verified
- keyStore
- Type: DidiSoft.Pgp..::..KeyStore
Key store containing the Public key for verification
- outputFileStream
- Type: System.IO..::..Stream
Output Stream for the uncompressed signed content
Return Value
true if signed correctly, false if not signed with this public key
Exceptions
| Exception | Condition |
|---|---|
| NonPGPDataException | if the input data is not a valid OpenPGP message |
| DidiSoft.Pgp.Exceptions..::..FileIsEncryptedException | If the input signed message is not only signed but also encrypted. |