Qt Cryptographic Architecture
|
#include <QtCrypto>
Public Types | |
enum | Type { System , User , Application , SmartCard , PGPKeyring } |
Signals | |
void | entryRemoved (bool success) |
void | entryWritten (const QString &entryId) |
void | unavailable () |
void | updated () |
Public Member Functions | |
QList< KeyStoreEntry > | entryList () const |
bool | holdsIdentities () const |
bool | holdsPGPPublicKeys () const |
bool | holdsTrustedCertificates () const |
QString | id () const |
bool | isReadOnly () const |
bool | isValid () const |
KeyStore (const QString &id, KeyStoreManager *keyStoreManager) | |
QString | name () const |
bool | removeEntry (const QString &id) |
void | startAsynchronousMode () |
Type | type () const |
QString | writeEntry (const Certificate &cert) |
QString | writeEntry (const CRL &crl) |
QString | writeEntry (const KeyBundle &kb) |
QString | writeEntry (const PGPKey &key) |
![]() | |
Algorithm (const Algorithm &from) | |
void | change (const QString &type, const QString &provider) |
void | change (Provider::Context *c) |
Provider::Context * | context () |
const Provider::Context * | context () const |
Algorithm & | operator= (const Algorithm &from) |
Provider * | provider () const |
Provider::Context * | takeContext () |
QString | type () const |
Friends | |
class | KeyStoreManagerPrivate |
class | KeyStorePrivate |
Additional Inherited Members | |
![]() | |
Algorithm () | |
Algorithm (const QString &type, const QString &provider) | |
General purpose key storage object.
Examples of use of this are:
enum QCA::KeyStore::Type |
QCA::KeyStore::KeyStore | ( | const QString & | id, |
KeyStoreManager * | keyStoreManager | ||
) |
Obtain a specific KeyStore.
id | the identification for the key store |
keyStoreManager | the parent manager for this keystore |
bool QCA::KeyStore::isValid | ( | ) | const |
QString QCA::KeyStore::name | ( | ) | const |
The name associated with the KeyStore.
QString QCA::KeyStore::id | ( | ) | const |
The ID associated with the KeyStore.
bool QCA::KeyStore::isReadOnly | ( | ) | const |
void QCA::KeyStore::startAsynchronousMode | ( | ) |
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.
QList<KeyStoreEntry> QCA::KeyStore::entryList | ( | ) | const |
A list of the KeyStoreEntry objects in this store.
bool QCA::KeyStore::holdsTrustedCertificates | ( | ) | const |
test if the KeyStore holds trusted certificates (and CRLs)
bool QCA::KeyStore::holdsIdentities | ( | ) | const |
bool QCA::KeyStore::holdsPGPPublicKeys | ( | ) | const |
test if the KeyStore holds PGPPublicKey objects
QString QCA::KeyStore::writeEntry | ( | const KeyBundle & | kb | ) |
Add a entry to the KeyStore.
Returns the entryId of the written entry or an empty string on failure.
QString QCA::KeyStore::writeEntry | ( | const Certificate & | cert | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
cert | the Certificate to add to the KeyStore |
QString QCA::KeyStore::writeEntry | ( | const CRL & | crl | ) |
QString QCA::KeyStore::writeEntry | ( | const PGPKey & | key | ) |
bool QCA::KeyStore::removeEntry | ( | const QString & | id | ) |
Delete the a specified KeyStoreEntry from this KeyStore.
id | the ID for the entry to be deleted |
|
signal |
|
signal |
Emitted when the KeyStore becomes unavailable.
|
signal |
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. |
|
signal |
Emitted when an entry has been removed, in asynchronous mode.
success | indicates if the removal succeeded (true) or not (false). |