Verifies that the incoming string is signed from a trusted sender.
Namespace: DidiSoft.PgpAssembly: 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
| Exception | Condition |
|---|---|
| System.IO..::..IOException | if a problem has occurred reading public key |
| DidiSoft.Pgp..::..PGPException | General OpenPGP error |
| DidiSoft.Pgp.Exceptions..::..FileIsEncryptedException | If the input signed message is not only signed but also encrypted. |
| NonPGPDataException | if the input data is not a valid OpenPGP message |