zypp::PublicKey Class Reference

Class that represent a GPG Public Key. More...

#include <PublicKey.h>

List of all members.

Public Member Functions

 PublicKey ()
 PublicKey (const Pathname &file)
 Ctor
Exceptions:
when data does not make a key.

 ~PublicKey ()
bool isValid () const
std::string asString () const
std::string armoredData () const
std::string id () const
std::string name () const
std::string fingerprint () const
Date created () const
 Date when the key was created (time is 00:00:00).
Date expires () const
 Date when the key expires (time is 00:00:00) If the key never expires the date is Date() (i.e.
Pathname path () const
bool operator== (PublicKey b) const
bool operator== (std::string sid) const

Private Attributes

RWCOW_pointer< Impl_pimpl
 Pointer to implementation.

Friends

std::ostream & operator<< (std::ostream &str, const PublicKey &obj)

Related Functions

(Note that these are not member functions.)

std::ostream & dumpOn (std::ostream &str, const PublicKey &obj)

Classes

struct  Impl
 PublicKey implementation. More...


Detailed Description

Class that represent a GPG Public Key.

Definition at line 69 of file PublicKey.h.


Constructor & Destructor Documentation

zypp::PublicKey::PublicKey  ) 
 

Definition at line 209 of file PublicKey.cc.

zypp::PublicKey::PublicKey const Pathname file  ) 
 

Ctor

Exceptions:
when data does not make a key.

Definition at line 213 of file PublicKey.cc.

References MIL.

zypp::PublicKey::~PublicKey  ) 
 

Definition at line 223 of file PublicKey.cc.


Member Function Documentation

bool zypp::PublicKey::isValid  )  const [inline]
 

Definition at line 86 of file PublicKey.h.

References fingerprint(), and path().

std::string zypp::PublicKey::asString  )  const
 

Definition at line 232 of file PublicKey.cc.

References _pimpl.

std::string zypp::PublicKey::armoredData  )  const
 

Definition at line 237 of file PublicKey.cc.

References _pimpl.

std::string zypp::PublicKey::id  )  const
 

Definition at line 240 of file PublicKey.cc.

References _pimpl.

Referenced by zypp::dumpOn(), zypp::target::rpm::RpmDb::importPubkey(), operator==(), zypp::KeyRing::Impl::publicKeys(), and zypp::target::rpm::KeyRingSignalReceiver::trustedKeyAdded().

std::string zypp::PublicKey::name  )  const
 

Definition at line 243 of file PublicKey.cc.

References _pimpl.

Referenced by zypp::dumpOn(), zypp::KeyRing::Impl::publicKeys(), and zypp::target::rpm::KeyRingSignalReceiver::trustedKeyAdded().

std::string zypp::PublicKey::fingerprint  )  const
 

Definition at line 246 of file PublicKey.cc.

References _pimpl.

Referenced by zypp::dumpOn(), isValid(), operator==(), zypp::KeyRing::Impl::publicKeys(), and zypp::KeyRing::Impl::verifyFileSignatureWorkflow().

Date zypp::PublicKey::created  )  const
 

Date when the key was created (time is 00:00:00).

Definition at line 249 of file PublicKey.cc.

References _pimpl.

Referenced by zypp::dumpOn(), zypp::target::rpm::RpmDb::importPubkey(), operator==(), and zypp::KeyRing::Impl::verifyFileSignatureWorkflow().

Date zypp::PublicKey::expires  )  const
 

Date when the key expires (time is 00:00:00) If the key never expires the date is Date() (i.e.

0 seconds since the epoch (1.1.1970))

Definition at line 252 of file PublicKey.cc.

References _pimpl.

Referenced by zypp::dumpOn().

Pathname zypp::PublicKey::path  )  const
 

Definition at line 255 of file PublicKey.cc.

References _pimpl.

Referenced by zypp::KeyRing::Impl::importKey(), isValid(), and zypp::target::rpm::KeyRingSignalReceiver::trustedKeyAdded().

bool zypp::PublicKey::operator== PublicKey  b  )  const
 

Definition at line 258 of file PublicKey.cc.

References created(), fingerprint(), and id().

bool zypp::PublicKey::operator== std::string  sid  )  const
 

Definition at line 265 of file PublicKey.cc.

References id().


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const PublicKey obj
[friend]
 

Stream output

Definition at line 118 of file PublicKey.h.

std::ostream & dumpOn std::ostream &  str,
const PublicKey obj
[related]
 

Detailed stream output

Definition at line 270 of file PublicKey.cc.


Member Data Documentation

RWCOW_pointer<Impl> zypp::PublicKey::_pimpl [private]
 

Pointer to implementation.

Definition at line 113 of file PublicKey.h.

Referenced by armoredData(), asString(), created(), expires(), fingerprint(), id(), name(), and path().


The documentation for this class was generated from the following files:
Generated on Sat Sep 5 12:40:44 2009 for zypp by  doxygen 1.4.6