on_verification_status Event
Fired after verification of the signed message.
Syntax
class PIMAPVerificationStatusEventParams(object): @property def key_id() -> str: ... @property def status() -> int: ... # In class PIMAP: @property def on_verification_status() -> Callable[[PIMAPVerificationStatusEventParams], None]: ... @on_verification_status.setter def on_verification_status(event_hook: Callable[[PIMAPVerificationStatusEventParams], None]) -> None: ...
Remarks
This event fires when verify_signature or decrypt_and_verify_signature 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:
0 | Verification succeeded |
1 | Verification failed |
2 | The required key could not be found |
3 | Verification succeeded but the key is expired. |