tft_register_decrypt_handler
Function
Registers the function for private key password decryption if TLS encryption is enabled.
Format
mindio_ttp.framework_ttp.tft_register_decrypt_handler(decryptor: Callable)
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
decryptor |
Mandatory |
User-defined function for decrypting private key password. |
TLS encryption is configured through tft_start_controller and tft_init_processor. If the password is in ciphertext, a decryption function needs to be registered. For details, see Importing a TLS Certificate. |
Parameters of the callback function
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
cipherText |
- |
Private key password to be decrypted. |
Determined by the registration party. |
The return value of the callback function is plainText : str, that is, the decrypted private key password.
Return Value
No return value. If an error occurs, an error log is recorded and an exception is thrown.
Parent topic: API Reference