GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Classes | |
struct | KeyRefDeleter |
Public Member Functions | |
auto | IsGood () const -> bool |
auto | GetId () const -> QString |
auto | GetName () const -> QString |
auto | GetEmail () const -> QString |
auto | GetComment () const -> QString |
auto | GetFingerprint () const -> QString |
auto | GetProtocol () const -> QString |
auto | GetOwnerTrust () const -> QString |
auto | GetOwnerTrustLevel () const -> int |
auto | GetPublicKeyAlgo () const -> QString |
auto | GetKeyAlgo () const -> QString |
auto | GetLastUpdateTime () const -> QDateTime |
auto | GetExpireTime () const -> QDateTime |
auto | GetCreateTime () const -> QDateTime |
Create a time object. More... | |
auto | GetPrimaryKeyLength () const -> unsigned int |
s More... | |
auto | IsHasEncryptionCapability () const -> bool |
auto | IsHasActualEncryptionCapability () const -> bool |
auto | IsHasSigningCapability () const -> bool |
auto | IsHasActualSigningCapability () const -> bool |
auto | IsHasCertificationCapability () const -> bool |
auto | IsHasActualCertificationCapability () const -> bool |
auto | IsHasAuthenticationCapability () const -> bool |
auto | IsHasActualAuthenticationCapability () const -> bool |
auto | IsHasCardKey () const -> bool |
auto | IsPrivateKey () const -> bool |
auto | IsExpired () const -> bool |
auto | IsRevoked () const -> bool |
auto | IsDisabled () const -> bool |
auto | IsHasMasterKey () const -> bool |
auto | GetSubKeys () const -> std::unique_ptr< std::vector< GpgSubKey >> |
auto | GetUIDs () const -> std::unique_ptr< std::vector< GpgUID >> |
GpgKey ()=default | |
Construct a new Gpg Key object. | |
GpgKey (gpgme_key_t &&key) | |
Construct a new Gpg Key object. More... | |
~GpgKey ()=default | |
Destroy the Gpg Key objects. | |
GpgKey (const gpgme_key_t &key)=delete | |
Construct a new Gpg Key object. More... | |
GpgKey (GpgKey &&) noexcept | |
Construct a new Gpg Key object. More... | |
auto | operator= (GpgKey &&) noexcept -> GpgKey & |
GpgKey (const GpgKey &) | |
Construct a new Gpg Key object. More... | |
auto | operator= (const GpgKey &) -> GpgKey & |
auto | operator= (const gpgme_key_t &) -> GpgKey &=delete |
auto | operator== (const GpgKey &) const -> bool |
auto | operator<= (const GpgKey &) const -> bool |
operator gpgme_key_t () const | |
Private Types | |
using | KeyRefHandler = std::unique_ptr< struct _gpgme_key, KeyRefDeleter > |
Private Attributes | |
KeyRefHandler | key_ref_ = nullptr |
|
explicit |
Construct a new Gpg Key object.
key |
|
delete |
Construct a new Gpg Key object.
key |
|
noexcept |
Construct a new Gpg Key object.
k |
GpgFrontend::GpgKey::GpgKey | ( | const GpgKey & | key | ) |
Construct a new Gpg Key object.
k |
auto GpgFrontend::GpgKey::GetComment | ( | ) | const -> QString |
auto GpgFrontend::GpgKey::GetCreateTime | ( | ) | const -> QDateTime |
Create a time object.
auto GpgFrontend::GpgKey::GetEmail | ( | ) | const -> QString |
Referenced by GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key().
auto GpgFrontend::GpgKey::GetExpireTime | ( | ) | const -> QDateTime |
auto GpgFrontend::GpgKey::GetFingerprint | ( | ) | const -> QString |
Referenced by GpgFrontend::GpgKeyOpera::GenerateRevokeCert().
auto GpgFrontend::GpgKey::GetId | ( | ) | const -> QString |
auto GpgFrontend::GpgKey::GetKeyAlgo | ( | ) | const -> QString |
auto GpgFrontend::GpgKey::GetLastUpdateTime | ( | ) | const -> QDateTime |
auto GpgFrontend::GpgKey::GetName | ( | ) | const -> QString |
Referenced by GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key().
auto GpgFrontend::GpgKey::GetOwnerTrust | ( | ) | const -> QString |
auto GpgFrontend::GpgKey::GetOwnerTrustLevel | ( | ) | const -> int |
auto GpgFrontend::GpgKey::GetPrimaryKeyLength | ( | ) | const -> unsigned int |
s
auto GpgFrontend::GpgKey::GetProtocol | ( | ) | const -> QString |
auto GpgFrontend::GpgKey::GetPublicKeyAlgo | ( | ) | const -> QString |
auto GpgFrontend::GpgKey::GetSubKeys | ( | ) | const -> std::unique_ptr<std::vector<GpgSubKey>> |
Referenced by IsHasActualAuthenticationCapability(), IsHasActualEncryptionCapability(), IsHasActualSigningCapability(), and IsHasCardKey().
auto GpgFrontend::GpgKey::GetUIDs | ( | ) | const -> std::unique_ptr<std::vector<GpgUID>> |
auto GpgFrontend::GpgKey::IsDisabled | ( | ) | const -> bool |
auto GpgFrontend::GpgKey::IsExpired | ( | ) | const -> bool |
auto GpgFrontend::GpgKey::IsGood | ( | ) | const -> bool |
auto GpgFrontend::GpgKey::IsHasActualAuthenticationCapability | ( | ) | const -> bool |
References GetSubKeys().
auto GpgFrontend::GpgKey::IsHasActualCertificationCapability | ( | ) | const -> bool |
check if key can certify(actually)
key | target key |
References IsDisabled(), IsExpired(), IsHasMasterKey(), and IsRevoked().
auto GpgFrontend::GpgKey::IsHasActualEncryptionCapability | ( | ) | const -> bool |
check if key can encrypt(actually)
key | target key |
References GetSubKeys().
auto GpgFrontend::GpgKey::IsHasActualSigningCapability | ( | ) | const -> bool |
References GetSubKeys().
Referenced by GpgFrontend::UI::SignersPicker::SignersPicker().
auto GpgFrontend::GpgKey::IsHasAuthenticationCapability | ( | ) | const -> bool |
auto GpgFrontend::GpgKey::IsHasCardKey | ( | ) | const -> bool |
References GetSubKeys().
auto GpgFrontend::GpgKey::IsHasCertificationCapability | ( | ) | const -> bool |
Referenced by GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
auto GpgFrontend::GpgKey::IsHasEncryptionCapability | ( | ) | const -> bool |
auto GpgFrontend::GpgKey::IsHasMasterKey | ( | ) | const -> bool |
Referenced by GpgFrontend::UI::KeyPairUIDTab::create_manage_uid_menu(), GpgFrontend::UI::KeyPairUIDTab::create_uid_popup_menu(), GpgFrontend::UI::KeyPairOperaTab::CreateOperaMenu(), IsHasActualCertificationCapability(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), GpgFrontend::UI::KeyPairOperaTab::KeyPairOperaTab(), GpgFrontend::UI::KeyPairSubkeyTab::KeyPairSubkeyTab(), GpgFrontend::UI::KeyPairUIDTab::KeyPairUIDTab(), and GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
auto GpgFrontend::GpgKey::IsHasSigningCapability | ( | ) | const -> bool |
auto GpgFrontend::GpgKey::IsPrivateKey | ( | ) | const -> bool |
Referenced by GpgFrontend::UI::KeyPairSubkeyTab::contextMenuEvent(), GpgFrontend::UI::MainWindow::create_dock_windows(), GpgFrontend::UI::KeyPairOperaTab::CreateOperaMenu(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), GpgFrontend::UI::KeyPairOperaTab::KeyPairOperaTab(), and GpgFrontend::UI::KeyPairSubkeyTab::KeyPairSubkeyTab().
auto GpgFrontend::GpgKey::IsRevoked | ( | ) | const -> bool |
|
explicit |
auto GpgFrontend::GpgKey::operator<= | ( | const GpgKey & | o | ) | const -> bool |
o |
|
delete |
key |
auto GpgFrontend::GpgKey::operator== | ( | const GpgKey & | o | ) | const -> bool |
o |