on_key_needed Event
This event is fired to request a vault encryption/decryption key from the application.
Syntax
class PasswordVaultKeyNeededEventParams(object): @property def cancel() -> bool: ... @cancel.setter def cancel(value) -> None: ... # In class PasswordVault: @property def on_key_needed() -> Callable[[PasswordVaultKeyNeededEventParams], None]: ... @on_key_needed.setter def on_key_needed(event_hook: Callable[[PasswordVaultKeyNeededEventParams], None]) -> None: ...
Remarks
Class fires this event to request a vault encryption key from the application. Note that this is not the same as entry encryption key, which is requested by on_entry_key_needed. The key requested by this event is used to encrypt or decrypt the whole vault.
The handler of this event should assign the password or key to be used to password or key property respectively. Set Cancel to true to abort the operation.