libkpgp
Kpgp::Subkey Class Reference
#include <kpgpkey.h>
Detailed Description
This class is used to store information about a subkey of a PGP key.
Definition at line 162 of file kpgpkey.h.
Public Member Functions | |
| Subkey (const KeyID &keyID, const bool secret=false) | |
| ~Subkey () | |
| bool | secret () const |
| bool | revoked () const |
| bool | expired () const |
| bool | disabled () const |
| bool | invalid () const |
| bool | canEncrypt () const |
| bool | canSign () const |
| bool | canCertify () const |
| unsigned int | keyAlgorithm () const |
| unsigned int | keyLength () const |
| KeyID | longKeyID () const |
| KeyID | keyID () const |
| QCString | fingerprint () const |
| time_t | creationDate () const |
| time_t | expirationDate () const |
| void | setSecret (const bool secret) |
| void | setRevoked (const bool revoked) |
| void | setExpired (const bool expired) |
| void | setDisabled (const bool disabled) |
| void | setInvalid (const bool invalid) |
| void | setCanEncrypt (const bool canEncrypt) |
| void | setCanSign (const bool canSign) |
| void | setCanCertify (const bool canCertify) |
| void | setKeyAlgorithm (const unsigned int keyAlgo) |
| void | setKeyLength (const unsigned int keyLen) |
| void | setKeyID (const KeyID &keyID) |
| void | setFingerprint (const QCString &fingerprint) |
| void | setCreationDate (const time_t creationDate) |
| void | setExpirationDate (const time_t expirationDate) |
Protected Attributes | |
| bool | mSecret: 1 |
| bool | mRevoked: 1 |
| bool | mExpired: 1 |
| bool | mDisabled: 1 |
| bool | mInvalid: 1 |
| bool | mCanEncrypt: 1 |
| bool | mCanSign: 1 |
| bool | mCanCertify: 1 |
| unsigned int | mKeyAlgo |
| unsigned int | mKeyLen |
| KeyID | mKeyID |
| QCString | mFingerprint |
| time_t | mTimestamp |
| time_t | mExpiration |
Constructor & Destructor Documentation
|
||||||||||||
|
Constructs a new subkey with the given key ID.
Definition at line 62 of file kpgpkey.cpp. |
Member Function Documentation
|
|
Returns true if the subkey can be used to certify keys.
|
|
|
Returns true if the subkey can be used to encrypt data.
|
|
|
Returns true if the subkey can be used to sign data.
|
|
|
Returns the creation date of the subkey.
|
|
|
Returns true if the subkey has been disabled.
|
|
|
Returns the expiration date of the subkey.
|
|
|
Returns true if the subkey has expired.
|
|
|
Returns the fingerprint of the subkey.
|
|
|
Returns true if the subkey is invalid.
|
|
|
Returns the key algorithm of the subkey.
|
|
|
Returns the (short) 32 bit key ID of the subkey.
|
|
|
Returns the length of the subkey in bits.
|
|
|
Returns the long 64 bit key ID of the subkey if it's available. Otherwise the short 32 bit key ID is returned. |
|
|
Returns true if the subkey has been revoked.
|
|
|
Returns true if the subkey is a secret subkey.
|
|
|
Sets the flag if the subkey can be used to certify keys to canCertify.
|
|
|
Sets the flag if the subkey can be used to encrypt data to canEncrypt.
|
|
|
Sets the flag if the subkey can be used to sign data to canSign.
|
|
|
Sets the creation date of the subkey to creationDate seconds since Epoch.
|
|
|
Sets the flag if the subkey has been disabled to disabled.
|
|
|
Sets the expiration date of the subkey to expirationDate seconds since Epoch.
|
|
|
Sets the flag if the subkey has expired to expired.
|
|
|
Sets the fingerprint of the subkey to fingerprint.
|
|
|
Sets the flag if the subkey is invalid to invalid.
|
|
|
Sets the key algorithm of the subkey to keyAlgo.
|
|
|
Sets the key ID of the subkey to keyID.
|
|
|
Sets the key length of the subkey to keyLen bits.
|
|
|
Sets the flag if the subkey has been revoked to revoked.
|
|
|
Sets the flag if the subkey is a secret subkey to secret.
|
The documentation for this class was generated from the following files:

