on_decryption_info_needed Event
Asks the application to provide a decryption certificate.
Syntax
class MailReaderDecryptionInfoNeededEventParams(object): @property def issuer_rdn() -> str: ... @property def serial_number() -> bytes: ... @property def subject_key_id() -> bytes: ... # In class MailReader: @property def on_decryption_info_needed() -> Callable[[MailReaderDecryptionInfoNeededEventParams], None]: ... @on_decryption_info_needed.setter def on_decryption_info_needed(event_hook: Callable[[MailReaderDecryptionInfoNeededEventParams], None]) -> None: ...
Remarks
This event is fired when the component needs a decryption certificate. Use the provided values to look up the certificate, and assign it to decryption_certificate property.
Note that the decryption certificate must have an associated private key.