zypp::KeyRing::Impl Struct Reference

KeyRing implementation. More...

List of all members.

Public Member Functions

 Impl (const Pathname &baseTmpDir)
void importKey (const PublicKey &key, bool trusted=false)
void deleteKey (const string &id, bool trusted)
string readSignatureKeyId (const Pathname &signature)
bool isKeyTrusted (const string &id)
bool isKeyKnown (const string &id)
list< PublicKeytrustedPublicKeys ()
list< PublicKeypublicKeys ()
list< string > trustedPublicKeyIds ()
list< string > publicKeyIds ()
void dumpPublicKey (const string &id, bool trusted, ostream &stream)
bool verifyFileSignatureWorkflow (const Pathname &file, const string filedesc, const Pathname &signature, const KeyContext &keycontext=KeyContext())
bool verifyFileSignature (const Pathname &file, const Pathname &signature)
bool verifyFileTrustedSignature (const Pathname &file, const Pathname &signature)

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl.

Private Member Functions

bool verifyFile (const Pathname &file, const Pathname &signature, const Pathname &keyring)
void importKey (const Pathname &keyfile, const Pathname &keyring)
PublicKey exportKey (string id, const Pathname &keyring)
void dumpPublicKey (const string &id, const Pathname &keyring, ostream &stream)
void deleteKey (const string &id, const Pathname &keyring)
list< PublicKeypublicKeys (const Pathname &keyring)
list< string > publicKeyIds (const Pathname &keyring)
bool publicKeyExists (string id, const Pathname &keyring)
const Pathname generalKeyRing () const
const Pathname trustedKeyRing () const
Implclone () const
 clone for RWCOW_pointer

Private Attributes

TmpDir _trusted_tmp_dir
TmpDir _general_tmp_dir
Pathname _base_dir

Friends

ImplrwcowClone (const Impl *rhs)


Detailed Description

KeyRing implementation.

Definition at line 86 of file KeyRing.cc.


Constructor & Destructor Documentation

zypp::KeyRing::Impl::Impl ( const Pathname &  baseTmpDir  )  [inline]

Definition at line 88 of file KeyRing.cc.

References MIL.

Referenced by clone(), and nullimpl().


Member Function Documentation

void zypp::KeyRing::Impl::importKey ( const PublicKey key,
bool  trusted = false 
)

Definition at line 166 of file KeyRing.cc.

References generalKeyRing(), zypp::PublicKey::path(), and trustedKeyRing().

Referenced by verifyFileSignatureWorkflow().

void zypp::KeyRing::Impl::deleteKey ( const string &  id,
bool  trusted 
)

Definition at line 180 of file KeyRing.cc.

References exportKey(), generalKeyRing(), and trustedKeyRing().

string zypp::KeyRing::Impl::readSignatureKeyId ( const Pathname &  signature  ) 

bool zypp::KeyRing::Impl::isKeyTrusted ( const string &  id  ) 

Definition at line 231 of file KeyRing.cc.

References publicKeyExists(), and trustedKeyRing().

bool zypp::KeyRing::Impl::isKeyKnown ( const string &  id  ) 

Definition at line 236 of file KeyRing.cc.

References generalKeyRing(), MIL, publicKeyExists(), and trustedKeyRing().

list< PublicKey > zypp::KeyRing::Impl::trustedPublicKeys (  ) 

Definition at line 206 of file KeyRing.cc.

References publicKeys(), and trustedKeyRing().

list< PublicKey > zypp::KeyRing::Impl::publicKeys (  ) 

Definition at line 201 of file KeyRing.cc.

References generalKeyRing().

Referenced by publicKeyExists(), and trustedPublicKeys().

list< string > zypp::KeyRing::Impl::trustedPublicKeyIds (  ) 

Definition at line 216 of file KeyRing.cc.

References publicKeyIds(), and trustedKeyRing().

list< string > zypp::KeyRing::Impl::publicKeyIds (  ) 

Definition at line 211 of file KeyRing.cc.

References generalKeyRing().

Referenced by publicKeys(), and trustedPublicKeyIds().

void zypp::KeyRing::Impl::dumpPublicKey ( const string &  id,
bool  trusted,
ostream &  stream 
)

Definition at line 285 of file KeyRing.cc.

References generalKeyRing(), and trustedKeyRing().

Referenced by exportKey().

bool zypp::KeyRing::Impl::verifyFileSignatureWorkflow ( const Pathname &  file,
const string  filedesc,
const Pathname &  signature,
const KeyContext keycontext = KeyContext() 
)

bool zypp::KeyRing::Impl::verifyFileSignature ( const Pathname &  file,
const Pathname &  signature 
)

Definition at line 226 of file KeyRing.cc.

References generalKeyRing(), and verifyFile().

bool zypp::KeyRing::Impl::verifyFileTrustedSignature ( const Pathname &  file,
const Pathname &  signature 
)

Definition at line 221 of file KeyRing.cc.

References trustedKeyRing(), and verifyFile().

bool zypp::KeyRing::Impl::verifyFile ( const Pathname &  file,
const Pathname &  signature,
const Pathname &  keyring 
) [private]

void zypp::KeyRing::Impl::importKey ( const Pathname &  keyfile,
const Pathname &  keyring 
) [private]

PublicKey zypp::KeyRing::Impl::exportKey ( string  id,
const Pathname &  keyring 
) [private]

void zypp::KeyRing::Impl::dumpPublicKey ( const string &  id,
const Pathname &  keyring,
ostream &  stream 
) [private]

void zypp::KeyRing::Impl::deleteKey ( const string &  id,
const Pathname &  keyring 
) [private]

list< PublicKey > zypp::KeyRing::Impl::publicKeys ( const Pathname &  keyring  )  [private]

list< string > zypp::KeyRing::Impl::publicKeyIds ( const Pathname &  keyring  )  [private]

bool zypp::KeyRing::Impl::publicKeyExists ( string  id,
const Pathname &  keyring 
) [private]

Definition at line 245 of file KeyRing.cc.

References MIL, and publicKeys().

Referenced by isKeyKnown(), isKeyTrusted(), and verifyFileSignatureWorkflow().

const Pathname zypp::KeyRing::Impl::generalKeyRing (  )  const [private]

const Pathname zypp::KeyRing::Impl::trustedKeyRing (  )  const [private]

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

Offer default Impl.

Definition at line 142 of file KeyRing.cc.

References Impl().

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

clone for RWCOW_pointer

Definition at line 151 of file KeyRing.cc.

References Impl().


Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs  )  [friend]


Member Data Documentation

Definition at line 137 of file KeyRing.cc.

Referenced by trustedKeyRing().

Definition at line 138 of file KeyRing.cc.

Referenced by generalKeyRing().

Pathname zypp::KeyRing::Impl::_base_dir [private]

Definition at line 139 of file KeyRing.cc.

Referenced by exportKey(), and readSignatureKeyId().


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

doxygen