|
libzypp 17.38.15
|
#include <zypp-common/KeyManager.h>
Classes | |
| class | Impl |
Public Member Functions | |
| Pathname | homedir () const |
| Return the homedir/keyring. | |
| std::list< PublicKeyData > | listKeys () |
| Returns a list of all public keys found in the current keyring. | |
| std::list< PublicKeyData > | readKeyFromFile (const Pathname &file) |
| Returns a list of all PublicKeyData found in file. | |
| bool | verify (const Pathname &file, const Pathname &signature) |
| Tries to verify file using signature, returns true on success. | |
| bool | exportKey (const std::string &id, std::ostream &stream) |
| Exports the key with id into the given stream, returns true on success. | |
| bool | exportKey (const std::string &id, ByteArray &keydata) |
| Exports the key with id into the given buffer, returns true on success. | |
| bool | importKey (const Pathname &keyfile) |
| Tries to import a key from keyfile, returns true on success. | |
| bool | importKey (std::istream &stream) |
| Tries to import a key from the given stream, returns true on success. | |
| bool | importKey (const ByteArray &keydata) |
| Tries to import a key from buffer, returns true on success. | |
| bool | deleteKey (const std::string &id) |
| Tries to delete a key specified by id, returns true on success. | |
| std::list< std::string > | readSignatureFingerprints (const Pathname &signature) |
| Reads all fingerprints from the signature file , returns a list of all found fingerprints. | |
| std::list< std::string > | readSignatureFingerprints (const ByteArray &keyData) |
| Reads all fingerprints from the buffer, returns a list of all found fingerprints. | |
Static Public Member Functions | |
| static KeyManagerCtx | createForOpenPGP () |
| Creates a new KeyManagerCtx for PGP using a volatile temp. | |
| static KeyManagerCtx | createForOpenPGP (const Pathname &keyring_r) |
| Creates a new KeyManagerCtx for PGP using a custom homedir/keyring. | |
Private Member Functions | |
| KeyManagerCtx () | |
Private Attributes | |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
Definition at line 31 of file KeyManager.h.
|
private |
Definition at line 399 of file KeyManager.cc.
|
static |
Creates a new KeyManagerCtx for PGP using a volatile temp.
homedir/keyring.
Mainly used with methods, which need a context but do not need a keyring (like readKeyFromFile or readSignatureFingerprints).
| KeyRingException | if context can not be created or set up |
Definition at line 403 of file KeyManager.cc.
|
static |
Creates a new KeyManagerCtx for PGP using a custom homedir/keyring.
Pathname, no homedir/keyring will be set and GPGME will use its defaults.| KeyRingException | if context can not be created or set up |
Definition at line 414 of file KeyManager.cc.
| Pathname zypp::KeyManagerCtx::homedir | ( | ) | const |
Return the homedir/keyring.
Definition at line 459 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 467 of file KeyManager.cc.
| std::list< PublicKeyData > zypp::KeyManagerCtx::readKeyFromFile | ( | const Pathname & | file | ) |
Returns a list of all PublicKeyData found in file.
Definition at line 497 of file KeyManager.cc.
Tries to verify file using signature, returns true on success.
Definition at line 526 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 531 of file KeyManager.cc.
Exports the key with id into the given buffer, returns true on success.
Definition at line 541 of file KeyManager.cc.
Tries to import a key from keyfile, returns true on success.
Definition at line 546 of file KeyManager.cc.
| bool zypp::KeyManagerCtx::importKey | ( | std::istream & | stream | ) |
Tries to import a key from the given stream, returns true on success.
Definition at line 565 of file KeyManager.cc.
Tries to import a key from buffer, returns true on success.
Definition at line 583 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 622 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 650 of file KeyManager.cc.
| std::list< std::string > zypp::KeyManagerCtx::readSignatureFingerprints | ( | const ByteArray & | keyData | ) |
Reads all fingerprints from the buffer, returns a list of all found fingerprints.
Definition at line 653 of file KeyManager.cc.
|
private |
Pointer to implementation.
Definition at line 95 of file KeyManager.h.