QCA
cmssigner/main.cpp
183 SignOperation(const QByteArray &_in, CertItemStore *_store, int _id, QCA::CMS *_cms, QObject *parent = 0)
276 VerifyOperation(const QByteArray &_in, const QByteArray &_sig, QCA::CMS *_cms, QObject *parent = 0)
493 QFileDialog::getOpenFileName(this, tr("Open File"), QString(), tr("X.509 Identities (*.p12 *.pfx)"));
507 w, SIGNAL(selected(const QCA::KeyStoreEntry &)), SLOT(load_device_finished(const QCA::KeyStoreEntry &)));
527 QFileDialog::getOpenFileName(this, tr("Open File"), QString(), tr("X.509 Certificates (*.pem *.crt)"));
673 index, QItemSelectionModel::Clear | QItemSelectionModel::Select | QItemSelectionModel::Current);
696 index, QItemSelectionModel::Clear | QItemSelectionModel::Select | QItemSelectionModel::Current);
748 op = new SignOperation(ui.te_data->toPlainText().toUtf8(), users, users->idFromRow(at), cms, this);
785 op = new VerifyOperation(ui.te_data->toPlainText().toUtf8(), ui.te_sig->toPlainText().toUtf8(), cms, this);
bool success() const
Indicates whether or not the operation was successful or failed.
Q_OBJECTQ_OBJECT
CertificateChain complete(const QList< Certificate > &issuers=QList< Certificate >(), Validity *result=nullptr) const
Complete a certificate chain for the primary certificate, using the rest of the certificates in the c...
Definition: qca_cert.h:1309
Definition: qca_keystore.h:140
Definition: qca_core.h:764
QCA_EXPORT CertificateCollection systemStore()
Get system-wide root Certificate Authority (CA) certificates.
Q_SLOTSQ_SLOTS
Definition: qca_securemessage.h:54
@ ErrorPathLengthExceeded
The path length from the root CA to this certificate is too long.
Definition: qca_cert.h:506
void customContextMenuRequested(const QPoint &pos)
int count(const T &value) const const
WindowModal
IdentityResult identityResult() const
get the results of the identity check on this signature
Definition: qca_securemessage.h:885
Definition: qca_publickey.h:832
QObject * sender() const const
CustomContextMenu
QString hashToString(const MemoryRegion &array)
Hash a byte array, returning it as a printable string
static Certificate fromPEMFile(const QString &fileName, ConvertResult *result=nullptr, const QString &provider=QString())
Import the certificate from a file.
QMessageBox::StandardButton warning(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton)
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
bool close()
void startVerify(const QByteArray &detachedSig=QByteArray())
Start a verification operation.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void startSign(SignMode m=Message)
QString commonName() const
The common name of the subject of the certificate.
void setX509CertificateChain(const CertificateChain &c)
Set the public key part of this X.509 key.
void update(const QByteArray &in)
Process a message (or the next part of a message) in the current operation.
Definition: qca_cert.h:1928
SecureMessageKey key() const
get the key associated with this signature
QModelIndexList indexes() const const
void setSigner(const SecureMessageKey &key)
Set the signer for a signed message.
QString & sprintf(const char *cformat,...)
void setTrustedCertificates(const CertificateCollection &trusted)
Set the trusted certificates to use for the messages built using this CMS object.
QTextStream & hex(QTextStream &stream)
void about(QWidget *parent, const QString &text, const QString &title=QString(), Options options=Notify)
Definition: qca_cert.h:1225
QByteArray mid(int pos, int len) const const
bool isEmpty() const const
Definition: qca_cert.h:856
Definition: qca_securemessage.h:319
@ ErrorSelfSigned
The certificate is self-signed, and is not found in the list of trusted certificates.
Definition: qca_cert.h:504
void setX509PrivateKey(const PrivateKey &k)
Set the private key part of this X.509 key.
void setEnabled(bool)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
int row() const const
Q_SIGNALSQ_SIGNALS
Validity keyValidity() const
get the results of the key validation check on this signature
CertificateChain x509CertificateChain() const
The X.509 certificate chain (public part) for this key.
const Certificate & primary() const
Return the primary (end-user) Certificate.
Definition: qca_cert.h:1249
bool isEmpty() const const
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
Definition: qca_core.h:659
QString fromLatin1(const char *str, int size)
QCA_EXPORT bool isSupported(const char *features, const QString &provider=QString())
Test if a capability (algorithm) is available.
void update(Part *part, const QByteArray &data, qint64 dataSize)
int size() const const
SecureMessageSignature signer() const
Information on the signer for the message.
void about(QWidget *parent, const QString &title, const QString &text)
QMessageBox::StandardButton information(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton)
QString tr(const char *sourceText, const char *disambiguation, int n)
void addCertificate(const Certificate &cert)
Append a Certificate to this collection.
Definition: qca_basic.h:208
QMessageBox::StandardButton critical(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton)
QObject * parent() const const
WA_DeleteOnClose
T value(int i) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 03:49:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 03:49:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.