libzypp  15.28.6
zypp::KeyRing::Impl Struct Reference

KeyRing implementation. More...

Public Member Functions

 Impl (const Pathname &baseTmpDir)
 
void importKey (const PublicKey &key, bool trusted=false)
 
void multiKeyImport (const Pathname &keyfile_r, bool trusted_r=false)
 
void deleteKey (const std::string &id, bool trusted)
 
std::string readSignatureKeyId (const Pathname &signature)
 
bool isKeyTrusted (const std::string &id)
 
bool isKeyKnown (const std::string &id)
 
std::list< PublicKeytrustedPublicKeys ()
 
std::list< PublicKeypublicKeys ()
 
const std::list< PublicKeyData > & trustedPublicKeyData ()
 
const std::list< PublicKeyData > & publicKeyData ()
 
void dumpPublicKey (const std::string &id, bool trusted, std::ostream &stream)
 
PublicKey exportPublicKey (const PublicKeyData &keyData)
 
PublicKey exportTrustedPublicKey (const PublicKeyData &keyData)
 
bool verifyFileSignatureWorkflow (const Pathname &file, const std::string &filedesc, const Pathname &signature, bool &sigValid_r, const KeyContext &keycontext=KeyContext())
 
bool verifyFileSignature (const Pathname &file, const Pathname &signature)
 
bool verifyFileTrustedSignature (const Pathname &file, const Pathname &signature)
 

Private Member Functions

bool verifyFile (const Pathname &file, const Pathname &signature, const Pathname &keyring)
 
void importKey (const Pathname &keyfile, const Pathname &keyring)
 
PublicKey exportKey (const std::string &id, const Pathname &keyring)
 
PublicKey exportKey (const PublicKeyData &keyData, const Pathname &keyring)
 
void dumpPublicKey (const std::string &id, const Pathname &keyring, std::ostream &stream)
 
filesystem::TmpFile dumpPublicKeyToTmp (const std::string &id, const Pathname &keyring)
 
void deleteKey (const std::string &id, const Pathname &keyring)
 
std::list< PublicKeypublicKeys (const Pathname &keyring)
 
const std::list< PublicKeyData > & publicKeyData (const Pathname &keyring)
 
PublicKeyData publicKeyExists (const std::string &id, const Pathname &keyring)
 Get PublicKeyData for ID (false if ID is not found). More...
 
const Pathname generalKeyRing () const
 
const Pathname trustedKeyRing () const
 

Private Attributes

filesystem::TmpDir _trusted_tmp_dir
 
filesystem::TmpDir _general_tmp_dir
 
Pathname _base_dir
 
CachedPublicKeyData cachedPublicKeyData
 Functor returning the keyrings data (cached). More...
 

Detailed Description

KeyRing implementation.

Definition at line 184 of file KeyRing.cc.

Constructor & Destructor Documentation

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

Definition at line 186 of file KeyRing.cc.

Member Function Documentation

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

Definition at line 270 of file KeyRing.cc.

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

Definition at line 284 of file KeyRing.cc.

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

Definition at line 289 of file KeyRing.cc.

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

Definition at line 561 of file KeyRing.cc.

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

Definition at line 200 of file KeyRing.cc.

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

Definition at line 202 of file KeyRing.cc.

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

Definition at line 205 of file KeyRing.cc.

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

Definition at line 207 of file KeyRing.cc.

const std::list<PublicKeyData>& zypp::KeyRing::Impl::trustedPublicKeyData ( )
inline

Definition at line 210 of file KeyRing.cc.

const std::list<PublicKeyData>& zypp::KeyRing::Impl::publicKeyData ( )
inline

Definition at line 212 of file KeyRing.cc.

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

Definition at line 215 of file KeyRing.cc.

PublicKey zypp::KeyRing::Impl::exportPublicKey ( const PublicKeyData keyData)
inline

Definition at line 218 of file KeyRing.cc.

PublicKey zypp::KeyRing::Impl::exportTrustedPublicKey ( const PublicKeyData keyData)
inline

Definition at line 220 of file KeyRing.cc.

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

Definition at line 378 of file KeyRing.cc.

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

Definition at line 225 of file KeyRing.cc.

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

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 599 of file KeyRing.cc.

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

Definition at line 508 of file KeyRing.cc.

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

Definition at line 330 of file KeyRing.cc.

PublicKey zypp::KeyRing::Impl::exportKey ( const PublicKeyData keyData,
const Pathname &  keyring 
)
private

Definition at line 325 of file KeyRing.cc.

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

Definition at line 342 of file KeyRing.cc.

filesystem::TmpFile zypp::KeyRing::Impl::dumpPublicKeyToTmp ( const std::string &  id,
const Pathname &  keyring 
)
private

Definition at line 367 of file KeyRing.cc.

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

Definition at line 535 of file KeyRing.cc.

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

Definition at line 494 of file KeyRing.cc.

const std::list<PublicKeyData>& zypp::KeyRing::Impl::publicKeyData ( const Pathname &  keyring)
inlineprivate

Definition at line 243 of file KeyRing.cc.

PublicKeyData zypp::KeyRing::Impl::publicKeyExists ( const std::string &  id,
const Pathname &  keyring 
)
private

Get PublicKeyData for ID (false if ID is not found).

Definition at line 310 of file KeyRing.cc.

const Pathname zypp::KeyRing::Impl::generalKeyRing ( ) const
inlineprivate

Definition at line 249 of file KeyRing.cc.

const Pathname zypp::KeyRing::Impl::trustedKeyRing ( ) const
inlineprivate

Definition at line 251 of file KeyRing.cc.

Member Data Documentation

filesystem::TmpDir zypp::KeyRing::Impl::_trusted_tmp_dir
private

Definition at line 255 of file KeyRing.cc.

filesystem::TmpDir zypp::KeyRing::Impl::_general_tmp_dir
private

Definition at line 256 of file KeyRing.cc.

Pathname zypp::KeyRing::Impl::_base_dir
private

Definition at line 257 of file KeyRing.cc.

CachedPublicKeyData zypp::KeyRing::Impl::cachedPublicKeyData
private

Functor returning the keyrings data (cached).

const std::list<PublicKeyData> & cachedPublicKeyData( const Pathname & keyring );

Definition at line 265 of file KeyRing.cc.


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