Kpgp::Subkey Class Reference
This class is used to store information about a subkey of a PGP key. More...
#include <kpgpkey.h>
Public Member Functions
- Subkey (const KeyID &keyID, const bool secret=false)
- 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
Detailed Description
This class is used to store information about a subkey of a PGP key.
Constructor & Destructor Documentation
|
Constructs a new subkey with the given key ID.
|
Member Function Documentation
|
Returns true if the subkey is a secret subkey.
|
|
Returns true if the subkey has been revoked.
|
|
Returns true if the subkey has expired.
|
|
Returns true if the subkey has been disabled.
|
|
Returns true if the subkey is invalid.
|
|
Returns true if the subkey can be used to encrypt data.
|
|
Returns true if the subkey can be used to sign data.
|
|
Returns true if the subkey can be used to certify keys.
|
|
Returns the key algorithm 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 the (short) 32 bit key ID of the subkey.
|
|
Returns the fingerprint of the subkey.
|
|
Returns the creation date of the subkey.
|
|
Returns the expiration date of the subkey.
|
|
Sets the flag if the subkey is a secret subkey to secret.
|
|
Sets the flag if the subkey has been revoked to revoked.
|
|
Sets the flag if the subkey has expired to expired.
|
|
Sets the flag if the subkey has been disabled to disabled.
|
|
Sets the flag if the subkey is invalid to invalid.
|
|
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 flag if the subkey can be used to certify keys to canCertify.
|
|
Sets the key algorithm of the subkey to keyAlgo.
|
|
Sets the key length of the subkey to keyLen bits.
|
|
Sets the key ID of the subkey to keyID.
|
|
Sets the fingerprint of the subkey to fingerprint.
|
|
Sets the creation date of the subkey to creationDate seconds since Epoch.
|
|
Sets the expiration date of the subkey to expirationDate seconds since Epoch.
|
The documentation for this class was generated from the following files:
- kpgpkey.h
- kpgpkey.cpp