libkpgp
#include <kpgpkey.h>
Public Member Functions | |
| Subkey (const KeyID &keyID, const bool secret=false) | |
| ~Subkey () | |
| bool | canCertify () const |
| bool | canEncrypt () const |
| bool | canSign () const |
| time_t | creationDate () const |
| bool | disabled () const |
| time_t | expirationDate () const |
| bool | expired () const |
| QByteArray | fingerprint () const |
| bool | invalid () const |
| unsigned int | keyAlgorithm () const |
| KeyID | keyID () const |
| unsigned int | keyLength () const |
| KeyID | longKeyID () const |
| bool | revoked () const |
| bool | secret () const |
| void | setCanCertify (const bool canCertify) |
| void | setCanEncrypt (const bool canEncrypt) |
| void | setCanSign (const bool canSign) |
| void | setCreationDate (const time_t creationDate) |
| void | setDisabled (const bool disabled) |
| void | setExpirationDate (const time_t expirationDate) |
| void | setExpired (const bool expired) |
| void | setFingerprint (const QByteArray &fingerprint) |
| void | setInvalid (const bool invalid) |
| void | setKeyAlgorithm (const unsigned int keyAlgo) |
| void | setKeyID (const KeyID &keyID) |
| void | setKeyLength (const unsigned int keyLen) |
| void | setRevoked (const bool revoked) |
| void | setSecret (const bool secret) |
Protected Attributes | |
| bool | mCanCertify: 1 |
| bool | mCanEncrypt: 1 |
| bool | mCanSign: 1 |
| bool | mDisabled: 1 |
| time_t | mExpiration |
| bool | mExpired: 1 |
| QByteArray | mFingerprint |
| bool | mInvalid: 1 |
| unsigned int | mKeyAlgo |
| KeyID | mKeyID |
| unsigned int | mKeyLen |
| bool | mRevoked: 1 |
| bool | mSecret: 1 |
| time_t | mTimestamp |
Detailed Description
This class is used to store information about a subkey of a PGP key.
Constructor & Destructor Documentation
|
explicit |
Constructs a new subkey with the given key ID.
Definition at line 65 of file kpgpkey.cpp.
Member Function Documentation
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the flag if the subkey can be used to certify keys to canCertify .
- Parameters
-
canCertify Whether this subkey can certify or not.
- See also
- canCertify()
|
inline |
Sets the flag if the subkey can be used to encrypt data to canEncrypt .
- Parameters
-
canEncrypt Whether this subkey can encrypt or not.
- See also
- canEncrypt()
|
inline |
|
inline |
|
inline |
Sets the flag if the subkey has been disabled to disabled .
- Parameters
-
disabled Whether this subkey is disabled or not.
- See also
- disabled()
|
inline |
Sets the expiration date of the subkey to expirationDate seconds since Epoch.
- Parameters
-
expirationDate Expiry time of this subkey, in seconds since the epoch (still midnight, january 1, 1970 in most places).
- Todo:
- Does this expiry influence any of the other flags?
|
inline |
|
inline |
Sets the fingerprint of the subkey to fingerprint .
- Parameters
-
fingerprint to use for this subkey
- See also
- fingerprint()
- Todo:
- What are legal fingerprints?
|
inline |
|
inline |
Sets the key algorithm of the subkey to keyAlgo .
- Parameters
-
keyAlgo The key algorithm to use.
- See also
- keyAlgorithm
- Todo:
- What are legal values? What do they mean? Where are they documented?
|
inline |
|
inline |
Sets the key length of the subkey to keyLen bits.
- Parameters
-
keyLength Length of the subkey.
- See also
- keyLength()
- Todo:
- What are the valid lengths? Is 0 ok?
|
inline |
|
inline |
Member Data Documentation
|
protected |
Can this subkey certify?
- See also
- canCertify()
- setCanCertify()
|
protected |
Can this subkey encrypt?
- See also
- canEncrypt()
- setCanEncrypt()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The documentation for this class was generated from the following files:
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.
KDE API Reference