Classes | |
struct | KeyData |
Data we extract from one key. More... | |
Public Member Functions | |
Impl () | |
Impl (const Pathname &keyfile) | |
Impl (const filesystem::TmpFile &sharedfile) | |
std::string | asString () const |
std::string | id () const |
std::string | name () const |
std::string | fingerprint () const |
std::string | gpgPubkeyVersion () const |
std::string | gpgPubkeyRelease () const |
Date | created () const |
Date | expires () const |
std::string | expiresAsString () const |
Pathname | path () const |
bool | expired () const |
int | daysToLive () const |
Static Public Member Functions | |
static shared_ptr< Impl > | nullimpl () |
Offer default Impl. | |
Protected Member Functions | |
void | readFromFile () |
Private Member Functions | |
Impl * | clone () const |
clone for RWCOW_pointer | |
Private Attributes | |
filesystem::TmpFile | _dataFile |
KeyData | _keyData |
Friends | |
Impl * | rwcowClone (const Impl *rhs) |
Definition at line 43 of file PublicKey.cc.
zypp::PublicKey::Impl::Impl | ( | ) | [inline] |
zypp::PublicKey::Impl::Impl | ( | const Pathname & | keyfile | ) | [inline] |
Definition at line 58 of file PublicKey.cc.
References _dataFile, zypp::filesystem::checksum(), zypp::iostr::copy(), MIL, zypp::filesystem::TmpPath::path(), readFromFile(), and ZYPP_THROW.
zypp::PublicKey::Impl::Impl | ( | const filesystem::TmpFile & | sharedfile | ) | [inline] |
static shared_ptr<Impl> zypp::PublicKey::Impl::nullimpl | ( | ) | [inline, static] |
std::string zypp::PublicKey::Impl::asString | ( | ) | const [inline] |
Definition at line 84 of file PublicKey.cc.
References created(), daysToLive(), fingerprint(), zypp::str::form(), zypp::str::hexstring(), and name().
Referenced by readFromFile().
std::string zypp::PublicKey::Impl::id | ( | ) | const [inline] |
Definition at line 93 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_id, and _keyData.
std::string zypp::PublicKey::Impl::name | ( | ) | const [inline] |
Definition at line 96 of file PublicKey.cc.
References _keyData, and zypp::PublicKey::Impl::KeyData::_name.
Referenced by asString().
std::string zypp::PublicKey::Impl::fingerprint | ( | ) | const [inline] |
Definition at line 99 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_fingerprint, and _keyData.
Referenced by asString().
std::string zypp::PublicKey::Impl::gpgPubkeyVersion | ( | ) | const [inline] |
Definition at line 102 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_id, _keyData, and zypp::str::toLower().
std::string zypp::PublicKey::Impl::gpgPubkeyRelease | ( | ) | const [inline] |
Definition at line 105 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_created, _keyData, and zypp::str::hexstring().
Date zypp::PublicKey::Impl::created | ( | ) | const [inline] |
Definition at line 108 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_created, and _keyData.
Referenced by asString().
Date zypp::PublicKey::Impl::expires | ( | ) | const [inline] |
Definition at line 111 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_expires, and _keyData.
Referenced by daysToLive(), and expired().
std::string zypp::PublicKey::Impl::expiresAsString | ( | ) | const [inline] |
Definition at line 114 of file PublicKey.cc.
References _, zypp::PublicKey::Impl::KeyData::_expires, _keyData, _PL, zypp::Date::asString(), daysToLive(), and zypp::str::form().
Pathname zypp::PublicKey::Impl::path | ( | ) | const [inline] |
Definition at line 141 of file PublicKey.cc.
References _dataFile, and zypp::filesystem::TmpPath::path().
bool zypp::PublicKey::Impl::expired | ( | ) | const [inline] |
int zypp::PublicKey::Impl::daysToLive | ( | ) | const [inline] |
Definition at line 150 of file PublicKey.cc.
References zypp::Date::day, expires(), and zypp::Date::now().
Referenced by asString(), and expiresAsString().
void zypp::PublicKey::Impl::readFromFile | ( | ) | [inline, protected] |
Definition at line 161 of file PublicKey.cc.
References zypp::PublicKey::Impl::KeyData::_created, _dataFile, zypp::PublicKey::Impl::KeyData::_expires, zypp::PublicKey::Impl::KeyData::_fingerprint, zypp::PublicKey::Impl::KeyData::_id, _keyData, zypp::PublicKey::Impl::KeyData::_name, asString(), zypp::filesystem::checksum(), zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, DOTEST, MIL, zypp::filesystem::TmpPath::path(), zypp::externalprogram::ExternalDataSource::receiveLine(), zypp::str::replaceAll(), zypp::str::splitFields(), and ZYPP_THROW.
Referenced by Impl().
Impl* zypp::PublicKey::Impl::clone | ( | ) | const [inline, private] |
KeyData zypp::PublicKey::Impl::_keyData [private] |
Definition at line 289 of file PublicKey.cc.
Referenced by created(), expires(), expiresAsString(), fingerprint(), gpgPubkeyRelease(), gpgPubkeyVersion(), id(), name(), and readFromFile().