Verifies that the incoming string 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 VerifyString(
	string signedString,
	Stream publicKeyStream
)
Visual Basic
Public Function VerifyString ( _
	signedString As String, _
	publicKeyStream As Stream _
) As Boolean
Visual C++
public:
bool VerifyString(
	String^ signedString, 
	Stream^ publicKeyStream
)

Parameters

signedString
Type: System..::..String
OpenPGP signed string to be verified
publicKeyStream
Type: System.IO..::..Stream
Input stream for the Public key of the sender

Return Value

true if signed correctly, false if not signed with this public key

Exceptions

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

See Also