libzypp  10.5.0
zypp::KeyRing::Impl Struct Reference

KeyRing implementation. More...

List of all members.

Public Member Functions

void importKey (const PublicKey &key, bool trusted=false)
void multiKeyImport (const Pathname &keyfile_r, bool trusted_r=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

 Impl (const Pathname &baseTmpDir)
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, static]

Definition at line 88 of file KeyRing.cc.


Member Function Documentation

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

Definition at line 167 of file KeyRing.cc.

void zypp::KeyRing::Impl::multiKeyImport ( const Pathname &  keyfile_r,
bool  trusted_r = false 
)

Definition at line 181 of file KeyRing.cc.

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

Definition at line 186 of file KeyRing.cc.

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

Definition at line 585 of file KeyRing.cc.

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

Definition at line 237 of file KeyRing.cc.

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

Definition at line 242 of file KeyRing.cc.

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

Definition at line 212 of file KeyRing.cc.

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

Definition at line 207 of file KeyRing.cc.

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

Definition at line 222 of file KeyRing.cc.

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

Definition at line 217 of file KeyRing.cc.

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

Definition at line 291 of file KeyRing.cc.

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

Definition at line 325 of file KeyRing.cc.

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

Definition at line 232 of file KeyRing.cc.

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

Definition at line 227 of file KeyRing.cc.

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

Definition at line 643 of file KeyRing.cc.

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

Definition at line 527 of file KeyRing.cc.

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

Definition at line 264 of file KeyRing.cc.

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

Definition at line 296 of file KeyRing.cc.

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

Definition at line 556 of file KeyRing.cc.

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

Definition at line 511 of file KeyRing.cc.

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

Definition at line 446 of file KeyRing.cc.

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

Definition at line 251 of file KeyRing.cc.

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

Definition at line 157 of file KeyRing.cc.

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

Definition at line 162 of file KeyRing.cc.

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

Offer default Impl.

Definition at line 143 of file KeyRing.cc.

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

clone for RWCOW_pointer

Definition at line 152 of file KeyRing.cc.


Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs) [friend]

Member Data Documentation

Definition at line 138 of file KeyRing.cc.

Definition at line 139 of file KeyRing.cc.

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

Definition at line 140 of file KeyRing.cc.


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