IPWorks OpenPGP 2020 .NET Edition

Questions / Feedback?

VerificationStatus Event

Fired after verification of the signed message.

Syntax

public event OnVerificationStatusHandler OnVerificationStatus;

public delegate void OnVerificationStatusHandler(object sender, OpenpgpVerificationStatusEventArgs e);

public class OpenpgpVerificationStatusEventArgs : EventArgs {
  public string KeyId { get; }
  public int Status { get; }
}
Public Event OnVerificationStatus As OnVerificationStatusHandler

Public Delegate Sub OnVerificationStatusHandler(sender As Object, e As OpenpgpVerificationStatusEventArgs)

Public Class OpenpgpVerificationStatusEventArgs Inherits EventArgs
  Public ReadOnly Property KeyId As String
  Public ReadOnly Property Status As Integer
End Class

Remarks

This event fires when VerifySignature or DecryptAndVerifySignature is called. It provides information about the result.

KeyId is the Id of the key used to sign the message. It is the hex-encoded, 4-or 8-byte Id of the key. It is the same as the last 4 or 8 bytes of the Fingerprint. For instance:

BF52A0AB

Status holds the result of the operation. Possible values are:

0Verification succeeded
1Verification failed
2The required key could not be found
3Verification succeeded but the key is expired.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks OpenPGP 2020 .NET Edition - Version 20.0 [Build 8249]