libzypp  17.11.1
zypp::KeyManagerCtx Class Reference

#include <KeyManager.h>

Classes

class  Impl
 

Public Types

typedef shared_ptr< KeyManagerCtxPtr
 

Public Member Functions

bool setHomedir (const Pathname &keyring_r)
 Changes the keyring directory. More...
 
Pathname homedir () const
 
std::list< PublicKeyDatalistKeys ()
 Returns a list of all public keys found in the current keyring. More...
 
std::list< PublicKeyDatareadKeyFromFile (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...
 

Detailed Description

Definition at line 31 of file KeyManager.h.

Member Typedef Documentation

◆ Ptr

Definition at line 34 of file KeyManager.h.

Constructor & Destructor Documentation

◆ KeyManagerCtx()

zypp::KeyManagerCtx::KeyManagerCtx ( )
private

Definition at line 98 of file KeyManager.cc.

Member Function Documentation

◆ createForOpenPGP()

KeyManagerCtx::Ptr zypp::KeyManagerCtx::createForOpenPGP ( )
static

Creates a new KeyManagerCtx for PGP.

Definition at line 193 of file KeyManager.cc.

◆ setHomedir()

bool zypp::KeyManagerCtx::setHomedir ( const Pathname keyring_r)

Changes the keyring directory.

Definition at line 218 of file KeyManager.cc.

◆ homedir()

Pathname zypp::KeyManagerCtx::homedir ( ) const

Definition at line 240 of file KeyManager.cc.

◆ listKeys()

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.

◆ readKeyFromFile()

std::list< PublicKeyData > zypp::KeyManagerCtx::readKeyFromFile ( const Pathname file)

Returns a list of all.

See also
PublicKeyData found in file

Definition at line 270 of file KeyManager.cc.

◆ verify()

bool zypp::KeyManagerCtx::verify ( const Pathname file,
const Pathname signature 
)

Tries to verify file using signature, returns true on success.

Definition at line 291 of file KeyManager.cc.

◆ exportKey()

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.

◆ importKey()

bool zypp::KeyManagerCtx::importKey ( const Pathname keyfile)

Tries to import a key from keyfile, returns true on success.

Definition at line 364 of file KeyManager.cc.

◆ deleteKey()

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.

◆ readSignatureFingerprints()

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.

Member Data Documentation

◆ _pimpl

RW_pointer<Impl> zypp::KeyManagerCtx::_pimpl
private

Pointer to implementation.

Definition at line 69 of file KeyManager.h.


The documentation for this class was generated from the following files: