GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Classes | |
struct | _key_ref_deleter |
Public Member Functions | |
bool | IsGood () const |
std::string | GetId () const |
std::string | GetName () const |
std::string | GetEmail () const |
std::string | GetComment () const |
std::string | GetFingerprint () const |
std::string | GetProtocol () const |
std::string | GetOwnerTrust () const |
std::string | GetPublicKeyAlgo () const |
boost::posix_time::ptime | GetLastUpdateTime () const |
boost::posix_time::ptime | GetExpireTime () const |
boost::posix_time::ptime | GetCreateTime () const |
Create a time object. More... | |
unsigned int | GetPrimaryKeyLength () const |
s More... | |
bool | IsHasEncryptionCapability () const |
bool | IsHasActualEncryptionCapability () const |
bool | IsHasSigningCapability () const |
bool | IsHasActualSigningCapability () const |
bool | IsHasCertificationCapability () const |
bool | IsHasActualCertificationCapability () const |
bool | IsHasAuthenticationCapability () const |
bool | IsHasActualAuthenticationCapability () const |
bool | IsHasCardKey () const |
bool | IsPrivateKey () const |
bool | IsExpired () const |
bool | IsRevoked () const |
bool | IsDisabled () const |
bool | IsHasMasterKey () const |
std::unique_ptr< std::vector< GpgSubKey > > | GetSubKeys () const |
std::unique_ptr< std::vector< GpgUID > > | GetUIDs () const |
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 &&k) noexcept | |
Construct a new Gpg Key object. More... | |
GpgKey & | operator= (GpgKey &&k) noexcept |
GpgKey & | operator= (const gpgme_key_t &key)=delete |
bool | operator== (const GpgKey &o) const |
bool | operator<= (const GpgKey &o) const |
operator gpgme_key_t () const | |
GpgKey | Copy () const |
Private Types | |
using | KeyRefHandler = std::unique_ptr< struct _gpgme_key, _key_ref_deleter > |
Private Attributes | |
KeyRefHandler | key_ref_ = nullptr |
|
explicit |
Construct a new Gpg Key object.
key | Copyright (C) 2021 Saturneric |
This file is part of GpgFrontend.
GpgFrontend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GpgFrontend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GpgFrontend. If not, see https://www.gnu.org/licenses/.
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.
All the source code of GpgFrontend was modified and released by Saturnericeric@ starting on May 12, 2021. bktu s.com
SPDX-License-Identifier: GPL-3.0-or-later
|
delete |
Construct a new Gpg Key object.
key |
|
noexcept |
Construct a new Gpg Key object.
k |
GpgFrontend::GpgKey GpgFrontend::GpgKey::Copy | ( | ) | const |
std::string GpgFrontend::GpgKey::GetComment | ( | ) | const |
boost::posix_time::ptime GpgFrontend::GpgKey::GetCreateTime | ( | ) | const |
Create a time object.
std::string GpgFrontend::GpgKey::GetEmail | ( | ) | const |
Referenced by GpgFrontend::UI::VerifyKeyDetailBox::create_key_info_grid(), GpgFrontend::UI::KeyImportDetailDialog::create_keys_table(), GpgFrontend::UI::KeyPairDetailTab::KeyPairDetailTab(), GpgFrontend::UI::KeyPairSubkeyTab::KeyPairSubkeyTab(), and GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key().
boost::posix_time::ptime GpgFrontend::GpgKey::GetExpireTime | ( | ) | const |
std::string GpgFrontend::GpgKey::GetFingerprint | ( | ) | const |
Referenced by GpgFrontend::GpgKeyOpera::GenerateRevokeCert(), and GpgFrontend::GpgKeyOpera::SetExpire().
std::string GpgFrontend::GpgKey::GetId | ( | ) | const |
Referenced by GpgFrontend::GpgKeyImportExporter::ExportKey(), GpgFrontend::GpgKeyImportExporter::ExportKeyOpenSSH(), GpgFrontend::GpgKeyImportExporter::ExportSecretKey(), GpgFrontend::GpgKeyImportExporter::ExportSecretKeyShortest(), GpgFrontend::GpgKeyOpera::GenerateSubkey(), GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog(), operator<=(), operator==(), GpgFrontend::GpgKeyOpera::SetExpire(), and GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key().
boost::posix_time::ptime GpgFrontend::GpgKey::GetLastUpdateTime | ( | ) | const |
std::string GpgFrontend::GpgKey::GetName | ( | ) | const |
std::string GpgFrontend::GpgKey::GetOwnerTrust | ( | ) | const |
unsigned int GpgFrontend::GpgKey::GetPrimaryKeyLength | ( | ) | const |
s
std::string GpgFrontend::GpgKey::GetProtocol | ( | ) | const |
std::string GpgFrontend::GpgKey::GetPublicKeyAlgo | ( | ) | const |
std::unique_ptr< std::vector< GpgFrontend::GpgSubKey > > GpgFrontend::GpgKey::GetSubKeys | ( | ) | const |
Referenced by GpgFrontend::UI::KeyPairDetailTab::KeyPairDetailTab(), and GpgFrontend::UI::KeyPairSubkeyTab::KeyPairSubkeyTab().
std::unique_ptr< std::vector< GpgFrontend::GpgUID > > GpgFrontend::GpgKey::GetUIDs | ( | ) | const |
bool GpgFrontend::GpgKey::IsDisabled | ( | ) | const |
Referenced by GpgFrontend::UI::MainWindow::create_dock_windows(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), and GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
bool GpgFrontend::GpgKey::IsExpired | ( | ) | const |
Referenced by GpgFrontend::UI::MainWindow::create_dock_windows(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), and GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
bool GpgFrontend::GpgKey::IsGood | ( | ) | const |
Referenced by GpgFrontend::UI::VerifyKeyDetailBox::create_key_info_grid(), and GpgFrontend::UI::KeyImportDetailDialog::create_keys_table().
bool GpgFrontend::GpgKey::IsHasActualAuthenticationCapability | ( | ) | const |
bool GpgFrontend::GpgKey::IsHasActualCertificationCapability | ( | ) | const |
check if key can certify(actually)
key | target key |
bool GpgFrontend::GpgKey::IsHasActualEncryptionCapability | ( | ) | const |
check if key can encrypt(actually)
key | target key |
bool GpgFrontend::GpgKey::IsHasActualSigningCapability | ( | ) | const |
Referenced by GpgFrontend::UI::SignersPicker::SignersPicker().
bool GpgFrontend::GpgKey::IsHasAuthenticationCapability | ( | ) | const |
bool GpgFrontend::GpgKey::IsHasCardKey | ( | ) | const |
bool GpgFrontend::GpgKey::IsHasCertificationCapability | ( | ) | const |
Referenced by GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
bool GpgFrontend::GpgKey::IsHasEncryptionCapability | ( | ) | const |
bool GpgFrontend::GpgKey::IsHasMasterKey | ( | ) | const |
Referenced by GpgFrontend::UI::KeyPairUIDTab::create_manage_uid_menu(), GpgFrontend::UI::KeyPairUIDTab::create_uid_popup_menu(), GpgFrontend::UI::KeyPairOperaTab::CreateOperaMenu(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), GpgFrontend::UI::KeyPairDetailTab::KeyPairDetailTab(), GpgFrontend::UI::KeyPairOperaTab::KeyPairOperaTab(), GpgFrontend::UI::KeyPairSubkeyTab::KeyPairSubkeyTab(), GpgFrontend::UI::KeyPairUIDTab::KeyPairUIDTab(), and GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
bool GpgFrontend::GpgKey::IsHasSigningCapability | ( | ) | const |
bool GpgFrontend::GpgKey::IsPrivateKey | ( | ) | const |
Referenced by GpgFrontend::UI::MainWindow::create_dock_windows(), GpgFrontend::UI::KeyPairOperaTab::CreateOperaMenu(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), GpgFrontend::UI::KeyPairDetailTab::KeyPairDetailTab(), GpgFrontend::UI::KeyPairOperaTab::KeyPairOperaTab(), and GpgFrontend::UI::KeyPairSubkeyTab::KeyPairSubkeyTab().
bool GpgFrontend::GpgKey::IsRevoked | ( | ) | const |
Referenced by GpgFrontend::UI::MainWindow::create_dock_windows(), GpgFrontend::UI::KeyMgmt::KeyMgmt(), and GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog().
|
explicit |
bool GpgFrontend::GpgKey::operator<= | ( | const GpgKey & | o | ) | const |
|
delete |
key |
|
noexcept |
k |
bool GpgFrontend::GpgKey::operator== | ( | const GpgKey & | o | ) | const |