PublicKey implementation. 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 | _data_file |
std::string | _id |
std::string | _name |
std::string | _fingerprint |
Date | _created |
Date | _expires |
Friends | |
Impl * | rwcowClone (const Impl *rhs) |
PublicKey implementation.
Definition at line 44 of file PublicKey.cc.
zypp::PublicKey::Impl::Impl | ( | ) | [inline] |
Definition at line 46 of file PublicKey.cc.
Referenced by clone().
zypp::PublicKey::Impl::Impl | ( | const Pathname & | keyfile | ) | [inline] |
Definition at line 49 of file PublicKey.cc.
References _data_file, zypp::filesystem::checksum(), zypp::iostr::copy(), MIL, zypp::filesystem::TmpPath::path(), readFromFile(), and ZYPP_THROW.
zypp::PublicKey::Impl::Impl | ( | const filesystem::TmpFile & | sharedfile | ) | [inline] |
Definition at line 63 of file PublicKey.cc.
References readFromFile().
static shared_ptr<Impl> zypp::PublicKey::Impl::nullimpl | ( | ) | [inline, static] |
Offer default Impl.
Definition at line 69 of file PublicKey.cc.
std::string zypp::PublicKey::Impl::asString | ( | ) | const [inline] |
Definition at line 75 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 84 of file PublicKey.cc.
References _id.
std::string zypp::PublicKey::Impl::name | ( | ) | const [inline] |
std::string zypp::PublicKey::Impl::fingerprint | ( | ) | const [inline] |
std::string zypp::PublicKey::Impl::gpgPubkeyVersion | ( | ) | const [inline] |
Definition at line 93 of file PublicKey.cc.
References _id, and zypp::str::toLower().
std::string zypp::PublicKey::Impl::gpgPubkeyRelease | ( | ) | const [inline] |
Definition at line 96 of file PublicKey.cc.
References _created, and zypp::str::hexstring().
Date zypp::PublicKey::Impl::created | ( | ) | const [inline] |
Date zypp::PublicKey::Impl::expires | ( | ) | const [inline] |
Definition at line 102 of file PublicKey.cc.
References _expires.
Referenced by daysToLive(), and expired().
std::string zypp::PublicKey::Impl::expiresAsString | ( | ) | const [inline] |
Definition at line 105 of file PublicKey.cc.
References _, _expires, _PL, zypp::Date::asString(), daysToLive(), and zypp::str::form().
Pathname zypp::PublicKey::Impl::path | ( | ) | const [inline] |
Definition at line 132 of file PublicKey.cc.
References _data_file, and zypp::filesystem::TmpPath::path().
bool zypp::PublicKey::Impl::expired | ( | ) | const [inline] |
Definition at line 135 of file PublicKey.cc.
References expires(), and zypp::Date::now().
int zypp::PublicKey::Impl::daysToLive | ( | ) | const [inline] |
Definition at line 141 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 152 of file PublicKey.cc.
References _created, _data_file, _expires, _fingerprint, _id, _name, asString(), zypp::filesystem::checksum(), zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, 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] |
Definition at line 251 of file PublicKey.cc.
Referenced by Impl(), path(), and readFromFile().
std::string zypp::PublicKey::Impl::_id [private] |
Definition at line 253 of file PublicKey.cc.
Referenced by gpgPubkeyVersion(), id(), and readFromFile().
std::string zypp::PublicKey::Impl::_name [private] |
Definition at line 254 of file PublicKey.cc.
Referenced by name(), and readFromFile().
std::string zypp::PublicKey::Impl::_fingerprint [private] |
Definition at line 255 of file PublicKey.cc.
Referenced by fingerprint(), and readFromFile().
Date zypp::PublicKey::Impl::_created [private] |
Definition at line 256 of file PublicKey.cc.
Referenced by created(), gpgPubkeyRelease(), and readFromFile().
Date zypp::PublicKey::Impl::_expires [private] |
Definition at line 257 of file PublicKey.cc.
Referenced by expires(), expiresAsString(), and readFromFile().