zypp::KeyRing Class Reference

Class that represent a text and multiple translations. More...

#include <KeyRing.h>

Inheritance diagram for zypp::KeyRing:

zypp::base::ReferenceCounted NonCopyable List of all members.

Public Member Functions

 KeyRing (const Pathname &baseTmpDir)
 Default ctor.
void importKey (const Pathname &keyfile, bool trusted=false)
 imports a key from a file.
PublicKey readPublicKey (const Pathname &keyfile)
void dumpTrustedPublicKey (const std::string &id, std::ostream &stream)
void dumpUntrustedPublicKey (const std::string &id, std::ostream &stream)
void dumpPublicKey (const std::string &id, bool trusted, std::ostream &stream)
std::string readSignatureKeyId (const Pathname &signature)
 reads the public key id from a signature
void deleteKey (const std::string &id, bool trusted=false)
 removes a key from the keyring.
std::list< PublicKeypublicKeys ()
std::list< PublicKeytrustedPublicKeys ()
bool verifyFileSignatureWorkflow (const Pathname &file, const std::string filedesc, const Pathname &signature)
 Follows a signature verification interacting with the user.
bool verifyFileSignature (const Pathname &file, const Pathname &signature)
bool verifyFileTrustedSignature (const Pathname &file, const Pathname &signature)
 ~KeyRing ()
 Dtor.

Private Attributes

RWCOW_pointer< Impl_pimpl
 Pointer to implementation.

Friends

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

Classes

struct  Impl
 KeyRing implementation. More...

Detailed Description

Class that represent a text and multiple translations.

Definition at line 67 of file KeyRing.h.


Constructor & Destructor Documentation

zypp::KeyRing::KeyRing const Pathname baseTmpDir  ) 
 

Default ctor.

Definition at line 615 of file KeyRing.cc.

zypp::KeyRing::~KeyRing  ) 
 

Dtor.

Definition at line 633 of file KeyRing.cc.


Member Function Documentation

void zypp::KeyRing::importKey const Pathname keyfile,
bool  trusted = false
 

imports a key from a file.

throw if key was not imported

Definition at line 642 of file KeyRing.cc.

References _pimpl.

PublicKey zypp::KeyRing::readPublicKey const Pathname keyfile  ) 
 

Definition at line 647 of file KeyRing.cc.

References _pimpl.

void zypp::KeyRing::dumpTrustedPublicKey const std::string &  id,
std::ostream &  stream
[inline]
 

Definition at line 88 of file KeyRing.h.

References dumpPublicKey().

void zypp::KeyRing::dumpUntrustedPublicKey const std::string &  id,
std::ostream &  stream
[inline]
 

Definition at line 91 of file KeyRing.h.

References dumpPublicKey().

void zypp::KeyRing::dumpPublicKey const std::string &  id,
bool  trusted,
std::ostream &  stream
 

Definition at line 687 of file KeyRing.cc.

References _pimpl.

Referenced by dumpTrustedPublicKey(), and dumpUntrustedPublicKey().

std::string zypp::KeyRing::readSignatureKeyId const Pathname signature  ) 
 

reads the public key id from a signature

Definition at line 652 of file KeyRing.cc.

References _pimpl.

void zypp::KeyRing::deleteKey const std::string &  id,
bool  trusted = false
 

removes a key from the keyring.

If trusted is true, Remove it from trusted keyring too.

Definition at line 657 of file KeyRing.cc.

References _pimpl.

std::list< PublicKey > zypp::KeyRing::publicKeys  ) 
 

Definition at line 662 of file KeyRing.cc.

References _pimpl.

std::list< PublicKey > zypp::KeyRing::trustedPublicKeys  ) 
 

Definition at line 667 of file KeyRing.cc.

References _pimpl.

bool zypp::KeyRing::verifyFileSignatureWorkflow const Pathname file,
const std::string  filedesc,
const Pathname signature
 

Follows a signature verification interacting with the user.

The boolr eturned depends on user desicion to trust or not.

Definition at line 672 of file KeyRing.cc.

References _pimpl.

bool zypp::KeyRing::verifyFileSignature const Pathname file,
const Pathname signature
 

Definition at line 677 of file KeyRing.cc.

References _pimpl.

bool zypp::KeyRing::verifyFileTrustedSignature const Pathname file,
const Pathname signature
 

Definition at line 682 of file KeyRing.cc.

References _pimpl.


Friends And Related Function Documentation

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

Stream output

Definition at line 135 of file KeyRing.h.


Member Data Documentation

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

Pointer to implementation.

Definition at line 130 of file KeyRing.h.

Referenced by deleteKey(), dumpPublicKey(), importKey(), publicKeys(), readPublicKey(), readSignatureKeyId(), trustedPublicKeys(), verifyFileSignature(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:30 2006 for zypp by  doxygen 1.4.6