zypp::PublicKey::Impl Class Reference

PublicKey implementation. More...

List of all members.

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< Implnullimpl ()
 Offer default Impl.

Protected Member Functions

void readFromFile ()

Private Member Functions

Implclone () const
 clone for RWCOW_pointer

Private Attributes

filesystem::TmpFile _dataFile
KeyData _keyData

Friends

ImplrwcowClone (const Impl *rhs)


Detailed Description

PublicKey implementation.

Definition at line 43 of file PublicKey.cc.


Constructor & Destructor Documentation

zypp::PublicKey::Impl::Impl (  )  [inline]

Definition at line 55 of file PublicKey.cc.

Referenced by clone().

zypp::PublicKey::Impl::Impl ( const Pathname &  keyfile  )  [inline]

zypp::PublicKey::Impl::Impl ( const filesystem::TmpFile sharedfile  )  [inline]

Definition at line 72 of file PublicKey.cc.

References readFromFile().


Member Function Documentation

static shared_ptr<Impl> zypp::PublicKey::Impl::nullimpl (  )  [inline, static]

Offer default Impl.

Definition at line 78 of file PublicKey.cc.

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]

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]

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]

Definition at line 144 of file PublicKey.cc.

References expires(), and zypp::Date::now().

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]

Impl* zypp::PublicKey::Impl::clone (  )  const [inline, private]

clone for RWCOW_pointer

Definition at line 294 of file PublicKey.cc.

References Impl().


Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs  )  [friend]


Member Data Documentation

Definition at line 288 of file PublicKey.cc.

Referenced by Impl(), path(), and readFromFile().


The documentation for this class was generated from the following file:

doxygen