libzypp  17.1.1
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 253 of file PublicKey.h.

Constructor & Destructor Documentation

◆ PublicKeyScanner()

zypp::PublicKeyScanner::PublicKeyScanner ( )

Definition at line 412 of file PublicKey.cc.

◆ ~PublicKeyScanner()

zypp::PublicKeyScanner::~PublicKeyScanner ( )

Definition at line 416 of file PublicKey.cc.

Member Function Documentation

◆ scan()

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

◆ _keys

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

Extracted keys.

Definition at line 262 of file PublicKey.h.

◆ _pimpl

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

Definition at line 265 of file PublicKey.h.


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