zypp::PublicKeyScanner Class Reference

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

#include <PublicKey.h>

List of all members.

Public Member Functions

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

Public Attributes

std::list< PublicKeyData_keys
 Extracted keys.

Private Attributes

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

Classes

class  Impl
 PublicKeyScanner implementation. More...


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 188 of file PublicKey.h.


Constructor & Destructor Documentation

zypp::PublicKeyScanner::PublicKeyScanner (  ) 

Definition at line 258 of file PublicKey.cc.

zypp::PublicKeyScanner::~PublicKeyScanner (  ) 

Definition at line 262 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 265 of file PublicKey.cc.

References _keys, and _pimpl.

Referenced by zypp::PublicKey::Impl::readFromFile().


Member Data Documentation

Extracted keys.

Definition at line 197 of file PublicKey.h.

Referenced by zypp::PublicKey::Impl::readFromFile(), and scan().

Definition at line 200 of file PublicKey.h.

Referenced by scan().


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

Generated on Tue May 5 14:49:25 2015 for libzypp by  doxygen 1.5.6