12 #ifndef ZYPP_ZYPP_DETAIL_KEYRINGIMPL_H 13 #define ZYPP_ZYPP_DETAIL_KEYRINGIMPL_H 16 #include <zypp-core/fs/WatchFile> 80 const std::list<PublicKeyData> &
getData(
const Pathname & keyring_r )
const;
void allowPreload(bool yesno_r)
const std::list< PublicKeyData > & publicKeyData()
PublicKey exportPublicKey(const PublicKeyData &keyData)
void dumpPublicKey(const std::string &id, bool trusted, std::ostream &stream)
void deleteKey(const std::string &id, bool trusted)
PublicKey exportKey(const std::string &id, const Pathname &keyring)
bool isKeyTrusted(const std::string &id)
const std::list< PublicKeyData > & trustedPublicKeyData()
const PublicKeyData & keyData() const
The public keys data (.
Functor returning the keyrings data (cached).
PublicKey exportKey(const PublicKey &key, const Pathname &keyring)
Manip(CachedPublicKeyData &cache_r, Pathname keyring_r)
Class representing one GPG Public Keys data.
bool isKeyKnown(const std::string &id)
void multiKeyImport(const Pathname &keyfile_r, bool trusted_r=false)
bool verifyFile(const Pathname &file, const Pathname &signature, const Pathname &keyring)
Manip manip(Pathname keyring_r)
Helper providing on demand a KeyManagerCtx to manip the cached keyring.
Provide a new empty temporary file and delete it when no longer needed.
CachedPublicKeyData cachedPublicKeyData
Functor returning the keyrings data (cached).
PublicKey exportTrustedPublicKey(const PublicKeyData &keyData)
std::map< Pathname, Cache > CacheMap
PublicKeyData trustedPublicKeyExists(const std::string &id)
Provide a new empty temporary directory and recursively delete it when no longer needed.
filesystem::TmpDir _trusted_tmp_dir
bool verifyFileSignature(const Pathname &file, const Pathname &signature)
CachedPublicKeyData & _cache
const Pathname generalKeyRing() const
filesystem::TmpFile dumpPublicKeyToTmp(const std::string &id, const Pathname &keyring)
scoped_ptr< WatchFile > _keyringK
std::list< PublicKey > trustedPublicKeys()
const std::list< PublicKeyData > & getData(const Pathname &keyring_r) const
void importKey(const PublicKey &key, bool trusted=false)
KeyManagerCtx & keyManagerCtx()
Impl(const Pathname &baseTmpDir)
void assertCache(const Pathname &keyring_r)
void preloadCachedKeys()
Load key files cached on the system into the generalKeyRing.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
const Pathname trustedKeyRing() const
std::list< PublicKey > publicKeys()
bool verifyFileTrustedSignature(const Pathname &file, const Pathname &signature)
const std::list< PublicKeyData > & operator()(const Pathname &keyring_r) const
const std::list< PublicKeyData > & publicKeyData(const Pathname &keyring)
std::list< PublicKeyData > _data
void setDirty(const Pathname &keyring_r)
std::optional< KeyManagerCtx > _context
scoped_ptr< WatchFile > _keyringP
Easy-to use interface to the ZYPP dependency resolver.
CachedPublicKeyData::Manip keyRingManip(const Pathname &keyring)
Impl helper providing on demand a KeyManagerCtx to manip a cached keyring.
PublicKeyData publicKeyExists(const std::string &id)
NON_COPYABLE_BUT_MOVE(Manip)
std::string readSignatureKeyId(const Pathname &signature)
Helper providing on demand a KeyManagerCtx to manip the cached keyring.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
filesystem::TmpDir _general_tmp_dir