QCA
qca_keystore.h
Go to the documentation of this file.
430 };
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.
bool ensureAvailable()
Returns true if the entry is available, otherwise false.
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.
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.
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.
PGPKey pgpPublicKey() const
If the key stored in this object is either an public or private PGP key, extract the public key part ...
PGPKey pgpSecretKey() const
If the key stored in this object is a private PGP key, return the contents of that key.
KeyStoreEntry & operator=(const KeyStoreEntry &from)
Standard assignment operator.
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(KeyStore::Type type, const QString &id, const QString &name)
Standard constructor.
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
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
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 entryWritten(const QString &entryId)
Emitted when an entry has been written, in asynchronous mode.
bool holdsTrustedCertificates() const
test if the KeyStore holds trusted certificates (and CRLs)
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...
KeyStore(const QString &id, KeyStoreManager *keyStoreManager)
Obtain a specific KeyStore.
bool removeEntry(const QString &id)
Delete the a specified KeyStoreEntry from this KeyStore.
void startAsynchronousMode()
Turns on asynchronous mode for this KeyStore instance.
bool holdsIdentities() const
test if the KeyStore holds identities (eg KeyBundle or PGPSecretKey)
Header file for PGP key and X.509 certificate related classes.
Header file for core QCA infrastructure.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.