Verifies that the incoming stream is signed from a trusted sender.

Namespace: DidiSoft.Pgp
Assembly: 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

ExceptionCondition
System.IO..::..IOExceptionif a problem has occurred reading input file or public key file
NonPGPDataExceptionif the input data is not a valid OpenPGP message
DidiSoft.Pgp.Exceptions..::..FileIsEncryptedExceptionIf the input signed message is not only signed but also encrypted.

See Also