#include <KeyRing.h>
Inheritance diagram for zypp::KeyRing:
Public Member Functions | |
KeyRing (const Pathname &baseTmpDir) | |
Default ctor. | |
void | importKey (const Pathname &keyfile, bool trusted=false) |
imports a key from a file. | |
PublicKey | readPublicKey (const Pathname &keyfile) |
void | dumpTrustedPublicKey (const std::string &id, std::ostream &stream) |
void | dumpUntrustedPublicKey (const std::string &id, std::ostream &stream) |
void | dumpPublicKey (const std::string &id, bool trusted, std::ostream &stream) |
std::string | readSignatureKeyId (const Pathname &signature) |
reads the public key id from a signature | |
void | deleteKey (const std::string &id, bool trusted=false) |
removes a key from the keyring. | |
std::list< PublicKey > | publicKeys () |
std::list< PublicKey > | trustedPublicKeys () |
bool | verifyFileSignatureWorkflow (const Pathname &file, const std::string filedesc, const Pathname &signature) |
Follows a signature verification interacting with the user. | |
bool | verifyFileSignature (const Pathname &file, const Pathname &signature) |
bool | verifyFileTrustedSignature (const Pathname &file, const Pathname &signature) |
~KeyRing () | |
Dtor. | |
Private Attributes | |
RWCOW_pointer< Impl > | _pimpl |
Pointer to implementation. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const KeyRing &obj) |
Classes | |
struct | Impl |
KeyRing implementation. More... |
Definition at line 67 of file KeyRing.h.
|
Default ctor.
Definition at line 615 of file KeyRing.cc. |
|
Dtor.
Definition at line 633 of file KeyRing.cc. |
|
imports a key from a file. throw if key was not imported Definition at line 642 of file KeyRing.cc. References _pimpl. |
|
Definition at line 647 of file KeyRing.cc. References _pimpl. |
|
Definition at line 88 of file KeyRing.h. References dumpPublicKey(). |
|
Definition at line 91 of file KeyRing.h. References dumpPublicKey(). |
|
Definition at line 687 of file KeyRing.cc. References _pimpl. Referenced by dumpTrustedPublicKey(), and dumpUntrustedPublicKey(). |
|
reads the public key id from a signature
Definition at line 652 of file KeyRing.cc. References _pimpl. |
|
removes a key from the keyring. If trusted is true, Remove it from trusted keyring too. Definition at line 657 of file KeyRing.cc. References _pimpl. |
|
Definition at line 662 of file KeyRing.cc. References _pimpl. |
|
Definition at line 667 of file KeyRing.cc. References _pimpl. |
|
Follows a signature verification interacting with the user. The boolr eturned depends on user desicion to trust or not. Definition at line 672 of file KeyRing.cc. References _pimpl. |
|
Definition at line 677 of file KeyRing.cc. References _pimpl. |
|
Definition at line 682 of file KeyRing.cc. References _pimpl. |
|
Stream output |
|
Pointer to implementation.
Definition at line 130 of file KeyRing.h. Referenced by deleteKey(), dumpPublicKey(), importKey(), publicKeys(), readPublicKey(), readSignatureKeyId(), trustedPublicKeys(), verifyFileSignature(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature(). |