libzypp
17.7.2
|
#include <KeyManager.h>
Classes | |
class | Impl |
Public Types | |
typedef shared_ptr< KeyManagerCtx > | Ptr |
Public Member Functions | |
bool | setHomedir (const Pathname &keyring_r) |
Changes the keyring directory. More... | |
Pathname | homedir () const |
std::list< PublicKeyData > | listKeys () |
Returns a list of all public keys found in the current keyring. More... | |
std::list< PublicKeyData > | readKeyFromFile (const Pathname &file) |
Returns a list of all. More... | |
bool | verify (const Pathname &file, const Pathname &signature) |
Tries to verify file using signature, returns true on success. More... | |
bool | exportKey (const std::string &id, std::ostream &stream) |
Exports the key with id into the given stream, returns true on success. More... | |
bool | importKey (const Pathname &keyfile) |
Tries to import a key from keyfile, returns true on success. More... | |
bool | deleteKey (const std::string &id) |
Tries to delete a key specified by id, returns true on success. More... | |
std::list< std::string > | readSignatureFingerprints (const Pathname &signature) |
Reads all fingerprints from the signature file , returns a list of all found fingerprints. More... | |
Static Public Member Functions | |
static Ptr | createForOpenPGP () |
Creates a new KeyManagerCtx for PGP. More... | |
Private Member Functions | |
KeyManagerCtx () | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Pointer to implementation. More... | |
Definition at line 31 of file KeyManager.h.
Definition at line 34 of file KeyManager.h.
|
private |
Definition at line 98 of file KeyManager.cc.
|
static |
Creates a new KeyManagerCtx for PGP.
Definition at line 193 of file KeyManager.cc.
Changes the keyring directory.
Definition at line 218 of file KeyManager.cc.
Pathname zypp::KeyManagerCtx::homedir | ( | ) | const |
Definition at line 240 of file KeyManager.cc.
std::list< PublicKeyData > zypp::KeyManagerCtx::listKeys | ( | ) |
Returns a list of all public keys found in the current keyring.
Definition at line 249 of file KeyManager.cc.
std::list< PublicKeyData > zypp::KeyManagerCtx::readKeyFromFile | ( | const Pathname & | file | ) |
Returns a list of all.
Definition at line 270 of file KeyManager.cc.
Tries to verify file using signature, returns true on success.
Definition at line 291 of file KeyManager.cc.
bool zypp::KeyManagerCtx::exportKey | ( | const std::string & | id, |
std::ostream & | stream | ||
) |
Exports the key with id into the given stream, returns true on success.
Definition at line 299 of file KeyManager.cc.
Tries to import a key from keyfile, returns true on success.
Definition at line 364 of file KeyManager.cc.
bool zypp::KeyManagerCtx::deleteKey | ( | const std::string & | id | ) |
Tries to delete a key specified by id, returns true on success.
Definition at line 387 of file KeyManager.cc.
std::list< std::string > zypp::KeyManagerCtx::readSignatureFingerprints | ( | const Pathname & | signature | ) |
Reads all fingerprints from the signature file , returns a list of all found fingerprints.
Definition at line 415 of file KeyManager.cc.
|
private |
Pointer to implementation.
Definition at line 69 of file KeyManager.h.