libzypp  11.13.5
zypp::PublicKeyScanner Class Reference

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

#include <PublicKey.h>

List of all members.

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.

Public Attributes

std::list< PublicKeyData_keys
 Extracted keys.

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;
{
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 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.


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: