libkpgp
Kpgp::Base Class Reference
Inheritance diagram for Kpgp::Base:

Detailed Description
Definition at line 31 of file kpgpbase.h.
Public Member Functions | |
Base () | |
virtual | ~Base () |
virtual int | encrypt (Block &, const KeyIDList &) |
virtual int | clearsign (Block &, const char *) |
virtual int | encsign (Block &, const KeyIDList &, const char *=0) |
virtual int | decrypt (Block &, const char *=0) |
virtual int | verify (Block &block) |
virtual Key * | readPublicKey (const KeyID &, const bool=false, Key *=0) |
virtual KeyList | publicKeys (const QStringList &=QStringList()) |
virtual KeyList | secretKeys (const QStringList &=QStringList()) |
virtual QCString | getAsciiPublicKey (const KeyID &) |
virtual int | signKey (const KeyID &, const char *) |
virtual QString | lastErrorMessage () const |
Protected Member Functions | |
virtual int | run (const char *cmd, const char *passphrase=0, bool onlyReadFromPGP=false) |
virtual int | runGpg (const char *cmd, const char *passphrase=0, bool onlyReadFromGnuPG=false) |
virtual void | clear () |
QCString | addUserId () |
Protected Attributes | |
QCString | input |
QCString | output |
QCString | error |
QString | errMsg |
QCString | mVersion |
int | status |
Constructor & Destructor Documentation
Kpgp::Base::Base | ( | ) |
Member Function Documentation
Encrypts the message with the given keys.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 41 of file kpgpbase.h.
virtual int Kpgp::Base::clearsign | ( | Block & | , | |
const char * | ||||
) | [inline, virtual] |
Clearsigns the message with the currently set key.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 44 of file kpgpbase.h.
virtual int Kpgp::Base::encsign | ( | Block & | , | |
const KeyIDList & | , | |||
const char * | = 0 | |||
) | [inline, virtual] |
Encrypts and signs the message with the given keys.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 47 of file kpgpbase.h.
virtual int Kpgp::Base::decrypt | ( | Block & | , | |
const char * | = 0 | |||
) | [inline, virtual] |
Decrypts the message.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 51 of file kpgpbase.h.
virtual int Kpgp::Base::verify | ( | Block & | block | ) | [inline, virtual] |
Verifies the message.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 54 of file kpgpbase.h.
virtual Key* Kpgp::Base::readPublicKey | ( | const KeyID & | , | |
const | bool = false , |
|||
Key * | = 0 | |||
) | [inline, virtual] |
Reads the key data for the given key and returns it.
If readTrust is true then the trust of this key will be determined. If key is not null then the key data will be stored in given key.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 62 of file kpgpbase.h.
virtual KeyList Kpgp::Base::publicKeys | ( | const QStringList & | = QStringList() |
) | [inline, virtual] |
Returns the list of public keys in the users public keyring.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 67 of file kpgpbase.h.
virtual KeyList Kpgp::Base::secretKeys | ( | const QStringList & | = QStringList() |
) | [inline, virtual] |
Returns the list of secret keys in the users secret keyring.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 71 of file kpgpbase.h.
virtual QCString Kpgp::Base::getAsciiPublicKey | ( | const KeyID & | ) | [inline, virtual] |
Returns the ascii armored data of the public key with the given key id.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 76 of file kpgpbase.h.
virtual int Kpgp::Base::signKey | ( | const KeyID & | , | |
const char * | ||||
) | [inline, virtual] |
Signs the given key with the currently set user key.
This is currently not implemented.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 80 of file kpgpbase.h.
QString Kpgp::Base::lastErrorMessage | ( | ) | const [inline, virtual] |
Returns an error message if an error occurred during the last operation.
Definition at line 231 of file kpgpbase.h.
The documentation for this class was generated from the following files: