on_certificate_received Event
Fired when a certificate is received from the remote host.
Syntax
class OFTPServerCertificateReceivedEventParams(object): @property def connection_id() -> int: ... @property def certificate_file_name() -> str: ... @property def certificate_exchange_type() -> int: ... # In class OFTPServer: @property def on_certificate_received() -> Callable[[OFTPServerCertificateReceivedEventParams], None]: ... @on_certificate_received.setter def on_certificate_received(event_hook: Callable[[OFTPServerCertificateReceivedEventParams], None]) -> None: ...
Remarks
This event provides information about the certificate file that was sent by the remote host.
When the remote host sends a certificate using the Certificate Exchange feature of OFTP 2.0, this event provides information about it. The certificate file will be written to the download_directory. After the file is written to download_directory this event will fire.
The CertificateFilemame parameter holds the filename of the received certificate.
The CertificateExchangeType parameter identifies the type of request associated with the certificate. Possible values are:
0 | Request: The class received a certificate and request from the remote host. Respond using the exchange_certificate method using a CertificateExchangeType of 3 (Deliver). The response may be in a separate session. |
1 | Replace: The class received a certificate from the remote host. No response is expected. The certificate received here invalidates any previously stored certificates for this configuration. |
2 | Deliver: The class received a certificate from the remote host. This is either a response to a certificate request, or a new additional certificates from the remote host. This will not invalidate previous certificates stored for this configuration. |
ConnectionId identifies the connected client.