Discuss this help topic in SecureBlackbox Forum
This event is fired when a password for the key is required.
Declaration
Parameters
Description
This event is fired by TElPGPReader when it needs a password to access a secret key.
The event is fired until correct password is passed or
Cancel parameter is set to
True.
If the data contains multiple keys, OnKeyPassphrase is called for each key in a loop until the password for some key is provided correctly.
For each key OnKeyPassphrase is called in a loop until the password is provided correctly or
Cancel is set to
True.
If the password is provided correctly, then both loops are stopped and the key for which the password has been provided is used.
If
Cancel is set to
True,
OnKeyPassphrase is not called for the particular key, and processing advances to the next key.