#include <QtCrypto>
Inheritance diagram for QCA::KeyStore:
Public Types | |
enum | Type { System, User, Application, SmartCard, PGPKeyring } |
Public Member Functions | |
KeyStore (const QString &id, KeyStoreManager *keyStoreManager) | |
bool | isValid () const |
Type | type () const |
QString | name () const |
QString | id () const |
bool | isReadOnly () const |
void | startAsynchronousMode () |
QList< KeyStoreEntry > | entryList () const |
bool | holdsTrustedCertificates () const |
bool | holdsIdentities () const |
bool | holdsPGPPublicKeys () const |
QString | writeEntry (const KeyBundle &kb) |
QString | writeEntry (const Certificate &cert) |
QString | writeEntry (const CRL &crl) |
QString | writeEntry (const PGPKey &key) |
bool | removeEntry (const QString &id) |
void | unavailable () |
void | entryWritten (const QString &entryId) |
void | entryRemoved (bool success) |
Public Attributes | |
Q_SIGNALS | __pad0__: void updated() |
Friends | |
class | KeyStorePrivate |
class | KeyStoreManagerPrivate |
Examples of use of this are:
|
The type of keystore.
|
|
Obtain a specific KeyStore.
|
|
Check if this KeyStore is valid.
|
|
The KeyStore Type.
Reimplemented from QCA::Algorithm. |
|
The name associated with the KeyStore.
|
|
The ID associated with the KeyStore.
|
|
Test if the KeyStore is writeable or not.
|
|
Turns on asynchronous mode for this KeyStore instance. Normally, entryList() and writeEntry() are blocking calls. However, if startAsynchronousMode() is called, then these functions will return immediately. entryList() will return with the latest known entries, or an empty list if none are known yet (in this mode, updated() will be emitted once the initial entries are known, even if the store has not actually been altered). writeEntry() will always return an empty string, and the entryWritten() signal indicates the result of a write. |
|
A list of the KeyStoreEntry objects in this store.
|
|
test if the KeyStore holds trusted certificates (and CRLs)
|
|
test if the KeyStore holds identities (eg KeyBundle or PGPSecretKey)
|
|
test if the KeyStore holds PGPPublicKey objects
|
|
Add a entry to the KeyStore. Returns the entryId of the written entry or an empty string on failure.
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
Delete the a specified KeyStoreEntry from this KeyStore.
|
|
Emitted when the KeyStore becomes unavailable.
|
|
Emitted when an entry has been written, in asynchronous mode. entryId is the newly written entry id on success, or an empty string if the write failed. |
|
Emitted when an entry has been removed, in asynchronous mode. success indicates if the removal succeeded or not. |