#include <qca_core.h>
Collaboration diagram for QCA::Event:
Public Types | |
enum | Type { Password, Token } |
enum | Source { KeyStore, Data } |
enum | PasswordStyle { StylePassword, StylePassphrase, StylePIN } |
Public Member Functions | |
Event () | |
Event (const Event &from) | |
~Event () | |
Event & | operator= (const Event &from) |
bool | isNull () const |
Type | type () const |
Source | source () const |
PasswordStyle | passwordStyle () const |
KeyStoreInfo | keyStoreInfo () const |
KeyStoreEntry | keyStoreEntry () const |
QString | fileName () const |
void * | ptr () const |
void | setPasswordKeyStore (PasswordStyle pstyle, const KeyStoreInfo &keyStoreInfo, const KeyStoreEntry &keyStoreEntry, void *ptr) |
void | setPasswordData (PasswordStyle pstyle, const QString &fileName, void *ptr) |
void | setToken (const KeyStoreInfo &keyStoreInfo, const KeyStoreEntry &keyStoreEntry, void *ptr) |
Events are produced in response to the library's need for some user intervention, such as entering a pin or password, or inserting a cryptographic token.
Event is an abstraction, so you can handle this need in a way that makes sense for your application.
|
Type of event
|
|
Source of the event Events are associated with access to a KeyStore, or access to a file (or bytearray/stream or equivalent). This tells you the type of source that caused the Event.
|
|
password variation If the Type of Event is Password, PasswordStyle tells you whether it is a PIN, passphrase or password.
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Assignment operator.
|
|
test if this event has been setup correctly
|
|
the Type of this event
|
|
the Source of this event
|
|
the style of password required. This is not meaningful unless the Type is Event::Password.
|
|
The info of the KeyStore associated with this event. This is not meaningful unless the Source is KeyStore. |
|
The KeyStoreEntry associated with this event. This is not meaningful unless the Source is KeyStore. |
|
Name or other identifier for the file or byte array associated with this event. This is not meaningful unless the Source is Data. |
|
opaque data
|
|
Set the values for this Event. This creates a Password type event, for a keystore.
|
|
Set the values for this Event. This creates a Password type event, for a file.
|
|
Set the values for this Event. This creates a Token type event.
|