libkpgp
kpgpkey.cpp
Go to the documentation of this file.
bool isValidEncryptionKey() const
Returns true if the key is a valid encryption key.
Definition: kpgpkey.cpp:187
void clear()
Validity
These are the possible validity values for a PGP user id and for the owner trust. ...
Definition: kpgpkey.h:32
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Key(const KeyID &keyid=KeyID(), const QString &uid=QString(), const bool secret=false)
Constructs a new PGP key with keyid as key ID of the primary key and uid as primary user ID...
Definition: kpgpkey.cpp:87
static KeyIDList fromStringList(const QStringList &)
Converts from a QStringList to a KeyIDList.
Definition: kpgpkey.cpp:41
void setFingerprint(const KeyID &keyID, const QByteArray &fpr)
Sets the fingerprint of the given subkey to fpr .
Definition: kpgpkey.cpp:252
bool isEmpty() const
int length() const
void append(const T &value)
KeyID longKeyID() const
Returns the long 64 bit key ID of the subkey if it's available.
Definition: kpgpkey.h:406
bool isEmpty() const
This class is used to store information about a subkey of a PGP key.
Definition: kpgpkey.h:183
bool isEmpty() const
void addUserID(const QString &uid, const Validity validity=KPGP_VALIDITY_UNKNOWN, const bool revoked=false, const bool invalid=false)
Adds a user ID with the given values to the key if uid isn't an empty string.
Definition: kpgpkey.cpp:200
Definition: kpgpkey.h:57
UserID(const QString &str, const Validity validity=KPGP_VALIDITY_UNKNOWN, const bool revoked=false, const bool invalid=false)
Constructs a new user id with the given values.
Definition: kpgpkey.cpp:53
This class is used to store information about a user id of a PGP key.
Definition: kpgpkey.h:72
iterator end()
bool isValidSigningKey() const
Returns true if the key is a valid signing key.
Definition: kpgpkey.cpp:194
void setFingerprint(const QByteArray &fingerprint)
Sets the fingerprint of the subkey to fingerprint .
Definition: kpgpkey.h:486
void addSubkey(const KeyID &keyID, const bool secret=false)
Adds a subkey with the given values to the key if keyID isn't an empty string.
Definition: kpgpkey.cpp:222
typedef ConstIterator
Definition: kpgpkey.h:47
Definition: kpgpkey.h:34
QStringList toStringList() const
Converts from a KeyIDList to a QStringList.
Definition: kpgpkey.cpp:30
Subkey(const KeyID &keyID, const bool secret=false)
Constructs a new subkey with the given key ID.
Definition: kpgpkey.cpp:65
iterator begin()
bool matchesUserID(const QString &str, bool cs=true)
Returns true if the given string matches one of the user IDs.
Definition: kpgpkey.cpp:209
Subkey * getSubkey(const KeyID &keyID)
Returns a pointer to the subkey with the given key ID.
Definition: kpgpkey.cpp:230
void cloneKeyTrust(const Key *key)
Set the validity values for the user ids to the validity values of the given key. ...
Definition: kpgpkey.cpp:168
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.