#include <QtCrypto>
Inheritance diagram for QCA::PGPKey:
Public Member Functions | |
PGPKey () | |
PGPKey (const QString &fileName) | |
PGPKey (const PGPKey &from) | |
PGPKey & | operator= (const PGPKey &from) |
bool | isNull () const |
QString | keyId () const |
QString | primaryUserId () const |
QStringList | userIds () const |
bool | isSecret () const |
QDateTime | creationDate () const |
QDateTime | expirationDate () const |
QString | fingerprint () const |
bool | inKeyring () const |
bool | isTrusted () const |
QByteArray | toArray () const |
QString | toString () const |
bool | toFile (const QString &fileName) const |
Static Public Member Functions | |
static PGPKey | fromArray (const QByteArray &a, ConvertResult *result=0, const QString &provider=QString()) |
static PGPKey | fromString (const QString &s, ConvertResult *result=0, const QString &provider=QString()) |
static PGPKey | fromFile (const QString &fileName, ConvertResult *result=0, const QString &provider=QString()) |
This holds either a reference to an item in a real PGP keyring, or a standalone item created using the from*() functions.
Note that with the latter method, the key is of no use besides being informational. The key must be in a keyring (that is, inKeyring() == true) to actually do crypto with it.
|
Create an empty PGP key.
|
|
Create a PGP key from an encoded file.
|
|
Standard copy constructor.
|
|
Standard assignment operator.
|
|
Test if the PGP key is empty (null).
|
|
The Key identification for the PGP key.
|
|
The primary user identification for the key.
|
|
The list of all user identifications associated with the key.
|
|
Test if the PGP key is the secret key.
|
|
The creation date for the key.
|
|
The expiration date for the key.
|
|
The key fingerpint. This will return the PGP fingerprint as a string. It comprises 16 hex digits, without spaces. |
|
Test if this key is in a keyring.
|
|
Test if the key is trusted.
|
|
Export the key to an array. This will export the key in a binary format (that is, not in an "ascii armoured" form).
|
|
Export the key to a string. This will export the key in an "ascii armoured" form.
|
|
Export the key to a file.
|
|
Import the key from an array.
|
|
Import the key from a string.
|
|
Import the key from a file.
|