42class KeyStoreManagerPrivate;
328 friend class KeyStoreTracker;
390 friend class Private;
598 friend class KeyStorePrivate;
601 friend class KeyStoreManagerPrivate;
690 QSharedDataPointer<Private> d;
731 static void start(
const QString &provider);
786 friend class KeyStoreManagerPrivate;
787 KeyStoreManagerPrivate *d;
790 friend class KeyStorePrivate;
793 static void shutdown();
General superclass for an algorithm.
Definition qca_core.h:1164
Certificate Revocation List
Definition qca_cert.h:1740
Public Key (X.509) certificate.
Definition qca_cert.h:857
Certificate chain and private key pair.
Definition qca_cert.h:2176
Class to monitor the availability of a KeyStoreEntry.
Definition qca_keystore.h:351
KeyStoreEntryWatcher(const KeyStoreEntry &e, QObject *parent=nullptr)
Standard constructor.
void unavailable()
This signal is emitted when the entry that is being monitored becomes unavailble.
KeyStoreEntry entry() const
The KeyStoreEntry that is being monitored.
void available()
This signal is emitted when the entry that is being monitored becomes available.
Single entry in a KeyStore.
Definition qca_keystore.h:141
KeyStoreEntry(const KeyStoreEntry &from)
Standard copy constructor.
KeyStoreEntry()
Create an empty KeyStoreEntry.
bool ensureAvailable()
Returns true if the entry is available, otherwise false.
Type
The type of entry in the KeyStore.
Definition qca_keystore.h:147
QString toString() const
Serialize into a string for use as a passive entry.
CRL crl() const
If a CRL is stored in this object, return the value of the CRL.
bool isAccessible() const
Test if the key is currently accessible.
Type type() const
Determine the type of key stored in this object.
bool isAvailable() const
Test if the key is available for use.
KeyBundle keyBundle() const
If a KeyBundle is stored in this object, return that bundle.
Certificate certificate() const
If a Certificate is stored in this object, return that certificate.
static KeyStoreEntry fromString(const QString &serialized)
Load a passive entry by using a serialized string as input.
QString name() const
The name associated with the key stored in this object.
QString storeName() const
The name of the KeyStore for this key object.
KeyStoreEntry(const QString &serialized)
Create a passive KeyStoreEntry based on a serialized string.
bool ensureAccess()
Like ensureAvailable, but will also ensure that the PIN is provided if needed.
QString id() const
The ID associated with the key stored in this object.
PGPKey pgpPublicKey() const
If the key stored in this object is either an public or private PGP key, extract the public key part ...
QString storeId() const
The id of the KeyStore for this key object.
PGPKey pgpSecretKey() const
If the key stored in this object is a private PGP key, return the contents of that key.
bool isNull() const
Test if this key is empty (null)
KeyStoreEntry & operator=(const KeyStoreEntry &from)
Standard assignment operator.
Key store information, outside of a KeyStore object.
Definition qca_keystore.h:624
KeyStoreInfo()
Constructor.
KeyStore::Type type() const
The Type of KeyStore that this KeyStoreInfo object describes.
QString name() const
The descriptive name of the KeyStore that this KeyStoreInfo object describes.
KeyStoreInfo & operator=(const KeyStoreInfo &from)
Assignment operator.
KeyStoreInfo(KeyStore::Type type, const QString &id, const QString &name)
Standard constructor.
KeyStoreInfo(const KeyStoreInfo &from)
Copy constructor.
bool isNull() const
Test if this object is valid.
QString id() const
The unique identification of the KeyStore that this KeyStoreInfo object describes.
Access keystores, and monitor keystores for changes.
Definition qca_keystore.h:710
QStringList keyStores() const
A list of all the key stores.
static QString diagnosticText()
The diagnostic result of key store operations, such as warnings and errors.
KeyStoreManager(QObject *parent=nullptr)
Create a new KeyStoreManager.
void keyStoreAvailable(const QString &id)
emitted when a new key store becomes available
void busyStarted()
emitted when the manager has started looking for key stores
bool isBusy() const
Indicates if the manager is busy looking for key stores.
static void clearDiagnosticText()
Clears the diagnostic result log.
static void start(const QString &provider)
Initialize a specific key store provider.
void waitForBusyFinished()
Blocks until the manager is done looking for key stores.
void sync()
If you are not using the eventloop, call this to update the object state to the present.
void busyFinished()
emitted when the manager has finished looking for key stores
static void start()
Initialize all key store providers.
General purpose key storage object.
Definition qca_keystore.h:417
void entryRemoved(bool success)
Emitted when an entry has been removed, in asynchronous mode.
bool holdsPGPPublicKeys() const
test if the KeyStore holds PGPPublicKey objects
QString writeEntry(const CRL &crl)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void unavailable()
Emitted when the KeyStore becomes unavailable.
bool isValid() const
Check if this KeyStore is valid.
QString name() const
The name associated with the KeyStore.
QString writeEntry(const KeyBundle &kb)
Add a entry to the KeyStore.
void entryWritten(const QString &entryId)
Emitted when an entry has been written, in asynchronous mode.
QString id() const
The ID associated with the KeyStore.
bool holdsTrustedCertificates() const
test if the KeyStore holds trusted certificates (and CRLs)
void updated()
Emitted when the KeyStore is changed.
QList< KeyStoreEntry > entryList() const
A list of the KeyStoreEntry objects in this store.
QString writeEntry(const PGPKey &key)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString writeEntry(const Certificate &cert)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isReadOnly() const
Test if the KeyStore is writeable or not.
KeyStore(const QString &id, KeyStoreManager *keyStoreManager)
Obtain a specific KeyStore.
bool removeEntry(const QString &id)
Delete the a specified KeyStoreEntry from this KeyStore.
Type type() const
The KeyStore Type.
void startAsynchronousMode()
Turns on asynchronous mode for this KeyStore instance.
Type
The type of keystore.
Definition qca_keystore.h:424
@ User
objects such as Apple Keychain, KDE Wallet
Definition qca_keystore.h:426
@ System
objects such as root certificates
Definition qca_keystore.h:425
@ SmartCard
for smartcards
Definition qca_keystore.h:428
@ Application
for caching accepted self-signed certificates
Definition qca_keystore.h:427
bool holdsIdentities() const
test if the KeyStore holds identities (eg KeyBundle or PGPSecretKey)
Pretty Good Privacy key.
Definition qca_cert.h:2407
QCA - the Qt Cryptographic Architecture.
Definition qca_basic.h:41
Header file for PGP key and X.509 certificate related classes.
Header file for core QCA infrastructure.