libkpgp
kpgpbase5.cpp
Go to the documentation of this file.
Validity
These are the possible validity values for a PGP user id and for the owner trust. ...
Definition: kpgpkey.h:32
uint toUInt(bool *ok, int base) const
void setCanCertify(const bool canCertify)
Sets the flag if the key can be used to certify keys to canCertify .
Definition: kpgpkey.h:762
int toInt(bool *ok, int base) const
void setSignatureDate(const QByteArray &date)
Definition: kpgpblock.h:278
virtual KeyList publicKeys(const QStringList &patterns=QStringList())
Returns the list of public keys in the users public keyring.
Definition: kpgpbase5.cpp:353
QByteArray trimmed() const
Definition: kpgpblock.h:56
const KeyID user() const
Returns the actual key ID of the currently set key.
Definition: kpgp.cpp:160
Definition: kpgpkey.h:39
void setCanEncrypt(const bool canEncrypt)
Sets the flag if the key can be used to encrypt data to canEncrypt .
Definition: kpgpkey.h:752
virtual Key * readPublicKey(const KeyID &keyID, const bool readTrust=false, Key *key=0)
Reads the key data for the given key and returns it.
Definition: kpgpbase5.cpp:319
bool isEmpty() const
Definition: kpgpkey.h:38
Definition: kpgpblock.h:89
virtual KeyList secretKeys(const QStringList &patterns=QStringList())
Returns the list of secret keys in the users secret keyring.
Definition: kpgpbase5.cpp:386
virtual QByteArray getAsciiPublicKey(const KeyID &keyID)
Returns the ascii armored data of the public key with the given key id.
Definition: kpgpbase5.cpp:413
int length() const
Definition: kpgpblock.h:54
virtual int signKey(const KeyID &keyID, const char *passphrase)
Signs the given key with the currently set user key.
Definition: kpgpbase5.cpp:431
void setDisabled(const bool disabled)
Sets the flag if the key has been disabled to disabled .
Definition: kpgpkey.h:742
int indexOf(char ch, int from) const
QString fromLocal8Bit(const char *str, int size)
virtual int run(const char *cmd, const char *passphrase=0, bool onlyReadFromPGP=false)
Definition: kpgpbase.cpp:67
void setSignatureUserId(const QString &userId)
Definition: kpgpblock.h:254
bool isEmpty() const
Definition: kpgpblock.h:51
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
QByteArray & replace(int pos, int len, const char *after)
typedef Iterator
Definition: kpgpblock.h:55
void truncate(int pos)
Definition: kpgpkey.h:35
Definition: kpgpkey.h:57
Definition: kpgpblock.h:49
Definition: kpgpblock.h:46
QByteArray mid(int pos, int len) const
virtual int clearsign(Block &block, const char *passphrase)
Clearsigns the message with the currently set key.
Definition: kpgpbase5.cpp:57
virtual int encsign(Block &block, const KeyIDList &recipients, const char *passphrase=0)
Encrypts and signs the message with the given keys.
Definition: kpgpbase5.cpp:64
QByteArray & append(char ch)
iterator end()
Definition: kpgpkey.h:37
QDateTime currentDateTime()
void setSignatureKeyId(const QByteArray &keyId)
Definition: kpgpblock.h:266
Definition: kpgpblock.h:57
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
Definition: kpgpbase.h:30
void setExpired(const bool expired)
Sets the flag if the key has expired to expired .
Definition: kpgpkey.h:737
virtual int encrypt(Block &block, const KeyIDList &recipients)
Encrypts the message with the given keys.
Definition: kpgpbase5.cpp:50
void setProcessedText(const QByteArray &str)
Definition: kpgpblock.h:209
typedef ConstIterator
bool contains(char ch) const
void setRevoked(const bool revoked)
Sets the flag if the key has been revoked to revoked .
Definition: kpgpkey.h:732
char * data()
virtual int decrypt(Block &block, const char *passphrase=0)
Decrypts the message.
Definition: kpgpbase5.cpp:195
Definition: kpgpblock.h:48
Definition: kpgpkey.h:34
Definition: kpgpblock.h:50
const_iterator constEnd() const
const_iterator constBegin() const
void setCanSign(const bool canSign)
Sets the flag if the key can be used to sign data to canSign .
Definition: kpgpkey.h:757
iterator begin()
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.