zypp::SignatureFileChecker Class Reference

#include <FileChecker.h>

List of all members.

Public Member Functions

 SignatureFileChecker (const Pathname &signature)
 Constructor.
 SignatureFileChecker ()
 Default Constructor.
void addPublicKey (const Pathname &publickey)
 add a public key to the list of known keys
void operator() (const Pathname &file) const

Private Attributes

Pathname _signature


Detailed Description

Checks for the validity of a signature

Definition at line 82 of file FileChecker.h.


Constructor & Destructor Documentation

zypp::SignatureFileChecker::SignatureFileChecker ( const Pathname &  signature  ) 

Constructor.

Parameters:
signature Signature that validates the file

Definition at line 97 of file FileChecker.cc.

zypp::SignatureFileChecker::SignatureFileChecker (  ) 

Default Constructor.

Signature for unsigned files Use it when you dont have a signature but you want to check the user to accept an unsigned file.

Definition at line 102 of file FileChecker.cc.


Member Function Documentation

void zypp::SignatureFileChecker::addPublicKey ( const Pathname &  publickey  ) 

add a public key to the list of known keys

Definition at line 106 of file FileChecker.cc.

Referenced by zypp::repo::yum::Downloader::download(), and zypp::repo::susetags::Downloader::download().

void zypp::SignatureFileChecker::operator() ( const Pathname &  file  )  const

Try to validate the file

Parameters:
file File to validate.
Exceptions:
SignatureCheckException if validation fails

Definition at line 112 of file FileChecker.cc.

References _signature, MIL, and ZYPP_THROW.


Member Data Documentation

Pathname zypp::SignatureFileChecker::_signature [private]

Definition at line 113 of file FileChecker.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:14 2007 for libzypp by  doxygen 1.5.3