|
libzypp
9.1.2
|
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::Pathname::asString(), 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 zypp::PublicKey::asString(), and readFromFile().
| std::string zypp::PublicKey::Impl::id | ( | ) | const [inline] |
| std::string zypp::PublicKey::Impl::name | ( | ) | const [inline] |
Definition at line 87 of file PublicKey.cc.
References _name.
Referenced by asString(), and zypp::PublicKey::name().
| std::string zypp::PublicKey::Impl::fingerprint | ( | ) | const [inline] |
Definition at line 90 of file PublicKey.cc.
References _fingerprint.
Referenced by asString(), and zypp::PublicKey::fingerprint().
| std::string zypp::PublicKey::Impl::gpgPubkeyVersion | ( | ) | const [inline] |
Definition at line 93 of file PublicKey.cc.
References _id, and zypp::str::toLower().
Referenced by zypp::PublicKey::gpgPubkeyVersion().
| std::string zypp::PublicKey::Impl::gpgPubkeyRelease | ( | ) | const [inline] |
Definition at line 96 of file PublicKey.cc.
References _created, and zypp::str::hexstring().
Referenced by zypp::PublicKey::gpgPubkeyRelease().
| Date zypp::PublicKey::Impl::created | ( | ) | const [inline] |
Definition at line 99 of file PublicKey.cc.
References _created.
Referenced by asString(), and zypp::PublicKey::created().
| Date zypp::PublicKey::Impl::expires | ( | ) | const [inline] |
Definition at line 102 of file PublicKey.cc.
References _expires.
Referenced by daysToLive(), expired(), and zypp::PublicKey::expires().
| 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().
Referenced by zypp::PublicKey::expiresAsString().
| Pathname zypp::PublicKey::Impl::path | ( | ) | const [inline] |
Definition at line 132 of file PublicKey.cc.
References _data_file, and zypp::filesystem::TmpPath::path().
Referenced by zypp::PublicKey::path().
| bool zypp::PublicKey::Impl::expired | ( | ) | const [inline] |
Definition at line 135 of file PublicKey.cc.
References expires(), and zypp::Date::now().
Referenced by zypp::PublicKey::expired().
| 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(), zypp::PublicKey::daysToLive(), 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::Pathname::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] |
| Impl* rwcowClone | ( | const Impl * | rhs | ) | [friend] |
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().
1.7.6.1