libzypp  15.28.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;
{
for ( std::string line = prog.receiveLine(); !line.empty(); line = prog.receiveLine() )
scanner.scan( line );
result.swap( scanner._keys );
}

Definition at line 248 of file PublicKey.h.

Constructor & Destructor Documentation

zypp::PublicKeyScanner::PublicKeyScanner ( )

Definition at line 412 of file PublicKey.cc.

zypp::PublicKeyScanner::~PublicKeyScanner ( )

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

Member Data Documentation

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

Extracted keys.

Definition at line 257 of file PublicKey.h.

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

Definition at line 260 of file PublicKey.h.


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