libkpgp
kpgpbase2.cpp
Go to the documentation of this file.
471 exitStatus = run( QByteArray(QByteArray(PGP2 " +batchmode +language=en +verbose=0 -kvc -f 0x") +
600 int exitStatus = run( QByteArray(QByteArray(PGP2 " +batchmode +force +language=en -kxaf 0x") + keyID),
void setRevoked(const bool revoked)
Sets the flag if the subkey has been revoked to revoked .
Definition: kpgpkey.h:436
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
void setDisabled(const bool disabled)
Sets the flag if the subkey has been disabled to disabled .
Definition: kpgpkey.h:446
int toInt(bool *ok, int base) const
void setSignatureDate(const QByteArray &date)
Definition: kpgpblock.h:278
QByteArray trimmed() const
void setExpired(const bool expired)
Sets the flag if the subkey has expired to expired .
Definition: kpgpkey.h:441
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
bool isEmpty() const
Definition: kpgpkey.h:38
void setKeyLength(const unsigned int keyLen)
Sets the key length of the subkey to keyLen bits.
Definition: kpgpkey.h:476
virtual KeyList secretKeys(const QStringList &patterns=QStringList())
Returns the list of secret keys in the users secret keyring.
Definition: kpgpbase2.cpp:568
Definition: kpgpblock.h:89
Definition: kpgpblock.h:54
void setRequiredUserId(const QString &userId)
Definition: kpgpblock.h:302
void setCanSign(const bool canSign)
Sets the flag if the subkey can be used to sign data to canSign .
Definition: kpgpkey.h:461
virtual int clearsign(Block &block, const char *passphrase)
Clearsigns the message with the currently set key.
Definition: kpgpbase2.cpp:56
virtual int signKey(const KeyID &keyID, const char *passphrase)
Signs the given key with the currently set user key.
Definition: kpgpbase2.cpp:575
void setSecret(const bool secret)
Sets the flag if the key is a secret key to secret .
Definition: kpgpkey.h:727
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
int count(const T &value) const
void append(const T &value)
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
This class is used to store information about a subkey of a PGP key.
Definition: kpgpkey.h:183
Definition: kpgpblock.h:51
virtual int encrypt(Block &block, const KeyIDList &recipients)
Encrypts the message with the given keys.
Definition: kpgpbase2.cpp:49
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
Definition: kpgpkey.h:35
KeyList doGetPublicKeys(const QByteArray &cmd, const QStringList &patterns)
Definition: kpgpbase2.cpp:511
virtual int decrypt(Block &block, const char *passphrase=0)
Decrypts the message.
Definition: kpgpbase2.cpp:225
Definition: kpgpkey.h:57
Definition: kpgpblock.h:49
Definition: kpgpblock.h:46
QByteArray mid(int pos, int len) const
void setExpirationDate(const time_t expirationDate)
Sets the expiration date of the subkey to expirationDate seconds since Epoch.
Definition: kpgpkey.h:496
QByteArray signatureDate() const
date of the signature WARNING: Will most likely be changed to QDateTime
Definition: kpgpblock.h:272
QByteArray & append(char ch)
iterator end()
Definition: kpgpkey.h:37
virtual int encsign(Block &block, const KeyIDList &recipients, const char *passphrase=0)
Encrypts and signs the message with the given keys.
Definition: kpgpbase2.cpp:63
virtual KeyList parseKeyList(const QByteArray &, bool)
Definition: kpgpbase2.cpp:893
void setSignatureKeyId(const QByteArray &keyId)
Definition: kpgpblock.h:266
Definition: kpgpblock.h:57
void setCanCertify(const bool canCertify)
Sets the flag if the subkey can be used to certify keys to canCertify .
Definition: kpgpkey.h:466
QByteArray primaryFingerprint() const
Returns the fingerprint of the primary key or a null string if there are no subkeys.
Definition: kpgpkey.h:797
T takeFirst()
void setFingerprint(const QByteArray &fingerprint)
Sets the fingerprint of the subkey to fingerprint .
Definition: kpgpkey.h:486
int secsTo(const QDateTime &other) const
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
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
Definition: kpgpkey.h:36
char * data()
Definition: kpgpblock.h:48
Definition: kpgpkey.h:34
QString fromLatin1(const char *str, int size)
Definition: kpgpblock.h:53
virtual KeyList publicKeys(const QStringList &patterns=QStringList())
Returns the list of public keys in the users public keyring.
Definition: kpgpbase2.cpp:504
Definition: kpgpblock.h:50
const_iterator constEnd() const
const_iterator constBegin() const
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: kpgpbase2.cpp:464
QByteArray & remove(int pos, int len)
void setCanEncrypt(const bool canEncrypt)
Sets the flag if the subkey can be used to encrypt data to canEncrypt .
Definition: kpgpkey.h:456
void setCanSign(const bool canSign)
Sets the flag if the key can be used to sign data to canSign .
Definition: kpgpkey.h:757
Definition: kpgpblock.h:52
iterator begin()
virtual QByteArray getAsciiPublicKey(const KeyID &keyID)
Returns the ascii armored data of the public key with the given key id.
Definition: kpgpbase2.cpp:594
void setCreationDate(const time_t creationDate)
Sets the creation date of the subkey to creationDate seconds since Epoch.
Definition: kpgpkey.h:491
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.