libzypp  13.10.6
zypp::PublicKeyScanner Class Reference

Scan abstract from 'gpg –with-colons' key listings. More...

#include <PublicKey.h>

Classes

class  Impl
 PublicKeyScanner implementation. More...
 

Public Member Functions

 PublicKeyScanner ()
 
 ~PublicKeyScanner ()
 
void scan (std::string line_r)
 Feed gpg output line by line into scan. More...
 

Public Attributes

std::list< PublicKeyData_keys
 Extracted keys. More...
 

Private Attributes

RW_pointer< Impl,
rw_pointer::Scoped< Impl > > 
_pimpl
 

Detailed Description

Scan abstract from 'gpg –with-colons' key listings.

Feed gpg output line by line into scan. The collected PublicKeyData contain the keys data (fingerprint, uid,...) but not the key itself (ASCII armored stored in a file).

* std::list<PublicKeyData> result;
* {
* PublicKeyScanner scanner;
* for ( std::string line = prog.receiveLine(); !line.empty(); line = prog.receiveLine() )
* scanner.scan( line );
* result.swap( scanner._keys );
* }
*

Definition at line 179 of file PublicKey.h.

Constructor & Destructor Documentation

zypp::PublicKeyScanner::PublicKeyScanner ( )

Definition at line 282 of file PublicKey.cc.

zypp::PublicKeyScanner::~PublicKeyScanner ( )

Definition at line 286 of file PublicKey.cc.

Member Function Documentation

void zypp::PublicKeyScanner::scan ( std::string  line_r)

Feed gpg output line by line into scan.

Definition at line 289 of file PublicKey.cc.

Member Data Documentation

std::list<PublicKeyData> zypp::PublicKeyScanner::_keys

Extracted keys.

Definition at line 188 of file PublicKey.h.

RW_pointer<Impl, rw_pointer::Scoped<Impl> > zypp::PublicKeyScanner::_pimpl
private

Definition at line 191 of file PublicKey.h.


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