#include <FileChecker.h>
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 |
Definition at line 82 of file FileChecker.h.
| zypp::SignatureFileChecker::SignatureFileChecker | ( | const Pathname & | signature | ) |
Constructor.
| 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.
| 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
| file | File to validate. |
| SignatureCheckException | if validation fails |
Definition at line 112 of file FileChecker.cc.
References _signature, MIL, and ZYPP_THROW.
Pathname zypp::SignatureFileChecker::_signature [private] |
1.5.3