User token handler. More...
#include <QtCrypto>

Signals | |
| void | responseReady () |
Public Member Functions | |
| bool | accepted () const |
| void | ask (const KeyStoreInfo &keyStoreInfo, const KeyStoreEntry &keyStoreEntry, void *ptr) |
| void | cancel () |
| TokenAsker (QObject *parent=0) | |
| void | waitForResponse () |
Friends | |
| class | Private |
User token handler.
This class is used to request the user to insert a token.
| QCA::TokenAsker::TokenAsker | ( | QObject * | parent = 0 |
) |
Construct a new asker.
| parent | the parent object for this QObject |
| void QCA::TokenAsker::ask | ( | const KeyStoreInfo & | keyStoreInfo, | |
| const KeyStoreEntry & | keyStoreEntry, | |||
| void * | ptr | |||
| ) |
queue a token request associated with a key store
| keyStoreInfo | info of the key store that the information is required for | |
| keyStoreEntry | the item in the key store that the information is required for (if applicable) | |
| ptr | opaque data |
| void QCA::TokenAsker::cancel | ( | ) |
Cancel the pending password / passphrase request.
| void QCA::TokenAsker::waitForResponse | ( | ) |
Block until the token request is completed.
You can use the responseReady signal instead of blocking, if appropriate.
| bool QCA::TokenAsker::accepted | ( | ) | const |
Test if the token request was accepted or not.
| void QCA::TokenAsker::responseReady | ( | ) | [signal] |
Emitted when the asker process has been completed.
You should check whether the user accepted() the response prior to relying on token being present.
1.6.3