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 VerifyFile( string dataFileName, KeyStore keyStore, string outputFileName ) |
| Visual Basic |
|---|
Public Function VerifyFile ( _ dataFileName As String, _ keyStore As KeyStore, _ outputFileName As String _ ) As Boolean |
| Visual C++ |
|---|
public: bool VerifyFile( String^ dataFileName, KeyStore^ keyStore, String^ outputFileName ) |
Parameters
- dataFileName
- Type: System..::..String
File name to be encrypted (absolute or relative path)
- keyStore
- Type: DidiSoft.Pgp..::..KeyStore
Key store instance containing the Public key for verification
- outputFileName
- Type: System..::..String
File name of the Output decrypted file (absolute or relative path). Optional parameter.
If empty the name stored in the PGP decrypted file is used.
Return Value
true if signed correctly, false if not signed with this public key
Exceptions
| Exception | Condition |
|---|---|
| System.IO..::..IOException | if a problem has occurred reading input file or public key file |
| 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. |