#include <qca_core.h>
Inheritance diagram for QCA::PasswordAsker:
Public Member Functions | |
PasswordAsker (QObject *parent=0) | |
void | ask (Event::PasswordStyle pstyle, const KeyStoreInfo &keyStoreInfo, const KeyStoreEntry &keyStoreEntry, void *ptr) |
void | ask (Event::PasswordStyle pstyle, const QString &fileName, void *ptr) |
void | cancel () |
void | waitForResponse () |
bool | accepted () const |
SecureArray | password () const |
Public Attributes | |
Q_SIGNALS | __pad0__: void responseReady() |
Friends | |
class | Private |
This class is used to obtain a password from a user.
|
Construct a new asker.
|
|
queue a password / passphrase request associated with a key store
|
|
queue a password / passphrase request associated with a file
|
|
Cancel the pending password / passphrase request.
|
|
Block until the password / passphrase request is completed. You can use the responseReady signal instead of blocking, if appropriate.
|
|
Determine whether the password / passphrase was accepted or not. In this context, returning true is indicative of the user clicking "Ok" or equivalent; and returning false indicates that either the user clicked "Cancel" or equivalent, or that the cancel() function was called, or that the request is still pending. |
|
The password / passphrase / PIN provided by the user in response to the asker request. This may be empty.
|