on_recipient_found Event
Fires to report a message addressee parameters.
Syntax
class MessageDecryptorRecipientFoundEventParams(object): @property def issuer_rdn() -> str: ... @property def serial_number() -> bytes: ... @property def subject_key_id() -> bytes: ... @property def cert_found() -> bool: ... # In class MessageDecryptor: @property def on_recipient_found() -> Callable[[MessageDecryptorRecipientFoundEventParams], None]: ... @on_recipient_found.setter def on_recipient_found(event_hook: Callable[[MessageDecryptorRecipientFoundEventParams], None]) -> None: ...
Remarks
This event is fired for each addressee the message is encrypted for. It may fire several times in a row if the message is encrypted for more than one recipient.
The IssuerRDN, SerialNumber, and SubjectKeyID parameters to identify the recipient's certificate. CertFound indicates if the specified certificate has been located in certificates collection. If it wasn't, you might want to look up the certificate manually, and add it to the collection inside the event handler.