libzypp  17.23.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)
 
PublicKeyData trustedPublicKeyExists (const std::string &id)
 
bool provideAndImportKeyFromRepositoryWorkflow (const std::string &id_r, const RepoInfo &info_r)
 

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)
 
PublicKey exportKey (const PublicKey &key, 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 181 of file KeyRing.cc.

Constructor & Destructor Documentation

◆ Impl()

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

Definition at line 183 of file KeyRing.cc.

Member Function Documentation

◆ importKey() [1/2]

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

Definition at line 299 of file KeyRing.cc.

◆ multiKeyImport()

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

Definition at line 321 of file KeyRing.cc.

◆ deleteKey() [1/2]

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

Definition at line 326 of file KeyRing.cc.

◆ readSignatureKeyId()

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

Definition at line 606 of file KeyRing.cc.

◆ isKeyTrusted()

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

Definition at line 197 of file KeyRing.cc.

◆ isKeyKnown()

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

Definition at line 199 of file KeyRing.cc.

◆ trustedPublicKeys()

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

Definition at line 202 of file KeyRing.cc.

◆ publicKeys() [1/2]

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

Definition at line 204 of file KeyRing.cc.

◆ trustedPublicKeyData()

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

Definition at line 207 of file KeyRing.cc.

◆ publicKeyData() [1/2]

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

Definition at line 209 of file KeyRing.cc.

◆ dumpPublicKey() [1/2]

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

Definition at line 212 of file KeyRing.cc.

◆ exportPublicKey()

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

Definition at line 215 of file KeyRing.cc.

◆ exportTrustedPublicKey()

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

Definition at line 217 of file KeyRing.cc.

◆ verifyFileSignatureWorkflow()

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

◆ verifyFileSignature()

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

Definition at line 222 of file KeyRing.cc.

◆ verifyFileTrustedSignature()

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

Definition at line 224 of file KeyRing.cc.

◆ trustedPublicKeyExists()

PublicKeyData zypp::KeyRing::Impl::trustedPublicKeyExists ( const std::string &  id)
inline

Definition at line 227 of file KeyRing.cc.

◆ provideAndImportKeyFromRepositoryWorkflow()

bool zypp::KeyRing::Impl::provideAndImportKeyFromRepositoryWorkflow ( const std::string &  id_r,
const RepoInfo info_r 
)

Definition at line 524 of file KeyRing.cc.

◆ verifyFile()

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

Definition at line 622 of file KeyRing.cc.

◆ importKey() [2/2]

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

Definition at line 586 of file KeyRing.cc.

◆ exportKey() [1/3]

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

Definition at line 375 of file KeyRing.cc.

◆ exportKey() [2/3]

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

Definition at line 370 of file KeyRing.cc.

◆ exportKey() [3/3]

PublicKey zypp::KeyRing::Impl::exportKey ( const PublicKey key,
const Pathname keyring 
)
inlineprivate

Definition at line 238 of file KeyRing.cc.

◆ dumpPublicKey() [2/2]

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

Definition at line 387 of file KeyRing.cc.

◆ dumpPublicKeyToTmp()

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

Definition at line 392 of file KeyRing.cc.

◆ deleteKey() [2/2]

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

Definition at line 599 of file KeyRing.cc.

◆ publicKeys() [2/2]

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

Definition at line 572 of file KeyRing.cc.

◆ publicKeyData() [2/2]

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

Definition at line 247 of file KeyRing.cc.

◆ publicKeyExists()

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

◆ generalKeyRing()

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

Definition at line 253 of file KeyRing.cc.

◆ trustedKeyRing()

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

Definition at line 255 of file KeyRing.cc.

Member Data Documentation

◆ _trusted_tmp_dir

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

Definition at line 259 of file KeyRing.cc.

◆ _general_tmp_dir

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

Definition at line 260 of file KeyRing.cc.

◆ _base_dir

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

Definition at line 261 of file KeyRing.cc.

◆ cachedPublicKeyData

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

Functor returning the keyrings data (cached).

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

Definition at line 269 of file KeyRing.cc.


The documentation for this struct was generated from the following file:
zypp::KeyRing::Impl::cachedPublicKeyData
CachedPublicKeyData cachedPublicKeyData
Functor returning the keyrings data (cached).
Definition: KeyRing.cc:269