kpgpkey.h
bool canCertify() const
Returns true if the key can be used to certify keys.
Definition: kpgpkey.h:638
bool matchesUserID(const TQString &str, bool cs=true)
Returns true if the given string matches one of the user IDs.
Definition: kpgpkey.cpp:206
TQString primaryUserID() const
Returns the primary user ID or a null string if there are no user IDs.
Definition: kpgpkey.h:693
void setSecret(const bool secret)
Sets the flag if the key is a secret key to secret.
Definition: kpgpkey.h:643
void setFingerprint(const KeyID &keyID, const TQCString &fpr)
Sets the fingerprint of the given subkey to fpr.
Definition: kpgpkey.cpp:249
void setInvalid(const bool invalid)
Sets the flag if the key is invalid to invalid.
Definition: kpgpkey.h:663
void addUserID(const TQString &uid, const Validity validity=KPGP_VALIDITY_UNKNOWN, const bool revoked=false, const bool invalid=false)
Adds a user ID with the given values to the key if uid isn't an empty string.
Definition: kpgpkey.cpp:197
void setCanEncrypt(const bool canEncrypt)
Sets the flag if the key can be used to encrypt data to canEncrypt.
Definition: kpgpkey.h:668
bool canEncrypt() const
Returns true if the key can be used to encrypt data.
Definition: kpgpkey.h:628
void setEncryptionPreference(const EncryptPref encrPref)
Sets the encryption preference for this key to encrPref.
Definition: kpgpkey.h:688
void setCanSign(const bool canSign)
Sets the flag if the key can be used to sign data to canSign.
Definition: kpgpkey.h:673
void cloneKeyTrust(const Key *key)
Set the validity values for the user ids to the validity values of the given key.
Definition: kpgpkey.cpp:165
bool isValidEncryptionKey() const
Returns true if the key is a valid encryption key.
Definition: kpgpkey.cpp:184
bool isValidSigningKey() const
Returns true if the key is a valid signing key.
Definition: kpgpkey.cpp:191
void setCanCertify(const bool canCertify)
Sets the flag if the key can be used to certify keys to canCertify.
Definition: kpgpkey.h:678
EncryptPref encryptionPreference()
Returns the encryption preference for this key.
Definition: kpgpkey.h:683
time_t creationDate() const
Returns the creation date of the primary subkey.
Definition: kpgpkey.h:738
void addSubkey(const KeyID &keyID, const bool secret=false)
Adds a subkey with the given values to the key if keyID isn't an empty string.
Definition: kpgpkey.cpp:219
KeyID primaryKeyID() const
Returns the key ID of the primary key or a null string if there are no subkeys.
Definition: kpgpkey.h:703
void setRevoked(const bool revoked)
Sets the flag if the key has been revoked to revoked.
Definition: kpgpkey.h:648
void setExpired(const bool expired)
Sets the flag if the key has expired to expired.
Definition: kpgpkey.h:653
TQCString primaryFingerprint() const
Returns the fingerprint of the primary key or a null string if there are no subkeys.
Definition: kpgpkey.h:713
void setDisabled(const bool disabled)
Sets the flag if the key has been disabled to disabled.
Definition: kpgpkey.h:658
Subkey * getSubkey(const KeyID &keyID)
Returns a pointer to the subkey with the given key ID.
Definition: kpgpkey.cpp:227
Key(const KeyID &keyid=KeyID(), const TQString &uid=TQString(), const bool secret=false)
Constructs a new PGP key with keyid as key ID of the primary key and uid as primary user ID.
Definition: kpgpkey.cpp:84
This class is used to store information about a subkey of a PGP key.
Definition: kpgpkey.h:163
void setSecret(const bool secret)
Sets the flag if the subkey is a secret subkey to secret.
Definition: kpgpkey.h:356
void setDisabled(const bool disabled)
Sets the flag if the subkey has been disabled to disabled.
Definition: kpgpkey.h:371
void setRevoked(const bool revoked)
Sets the flag if the subkey has been revoked to revoked.
Definition: kpgpkey.h:361
void setCanCertify(const bool canCertify)
Sets the flag if the subkey can be used to certify keys to canCertify.
Definition: kpgpkey.h:391
void setFingerprint(const TQCString &fingerprint)
Sets the fingerprint of the subkey to fingerprint.
Definition: kpgpkey.h:411
void setKeyAlgorithm(const unsigned int keyAlgo)
Sets the key algorithm of the subkey to keyAlgo.
Definition: kpgpkey.h:396
bool canEncrypt() const
Returns true if the subkey can be used to encrypt data.
Definition: kpgpkey.h:306
Subkey(const KeyID &keyID, const bool secret=false)
Constructs a new subkey with the given key ID.
Definition: kpgpkey.cpp:62
void setKeyLength(const unsigned int keyLen)
Sets the key length of the subkey to keyLen bits.
Definition: kpgpkey.h:401
void setCanEncrypt(const bool canEncrypt)
Sets the flag if the subkey can be used to encrypt data to canEncrypt.
Definition: kpgpkey.h:381
void setCanSign(const bool canSign)
Sets the flag if the subkey can be used to sign data to canSign.
Definition: kpgpkey.h:386
bool canCertify() const
Returns true if the subkey can be used to certify keys.
Definition: kpgpkey.h:316
void setExpired(const bool expired)
Sets the flag if the subkey has expired to expired.
Definition: kpgpkey.h:366
KeyID longKeyID() const
Returns the long 64 bit key ID of the subkey if it's available.
Definition: kpgpkey.h:331
void setInvalid(const bool invalid)
Sets the flag if the subkey is invalid to invalid.
Definition: kpgpkey.h:376
void setCreationDate(const time_t creationDate)
Sets the creation date of the subkey to creationDate seconds since Epoch.
Definition: kpgpkey.h:416
void setExpirationDate(const time_t expirationDate)
Sets the expiration date of the subkey to expirationDate seconds since Epoch.
Definition: kpgpkey.h:421
This class is used to store information about a user id of a PGP key.
Definition: kpgpkey.h:75
UserID(const TQString &str, const Validity validity=KPGP_VALIDITY_UNKNOWN, const bool revoked=false, const bool invalid=false)
Constructs a new user id with the given values.
Definition: kpgpkey.cpp:50
void setInvalid(const bool invalid)
Sets the flag if the user id is invalid to invalid.
Definition: kpgpkey.h:149
void setRevoked(const bool revoked)
Sets the flag if the user id has been revoked to revoked.
Definition: kpgpkey.h:144