12#ifndef ZYPP_FILECHECKER_H
13#define ZYPP_FILECHECKER_H
CheckSumCheckException(const std::string &msg)
void operator()(const Pathname &file) const
Try to validate the file.
ChecksumFileChecker(const CheckSum &checksum)
Constructor.
CheckSumCheckException ExceptionType
Checker composed of more checkers.
std::list< FileChecker > _checkers
void add(const FileChecker &checker)
void operator()(const Pathname &file) const
Base class for Exception.
const std::string & msg() const
Return the message string provided to the ctor.
FileCheckException(const std::string &msg)
Checks for nothing Used as the default checker.
void operator()(const Pathname &file) const
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
SignatureCheckException(const std::string &msg)
Checks for the validity of a signature.
bool fileAccepted() const
Return whether the last file passed to operator() was accepted.
void operator()(const Pathname &file) const
Calls KeyRing::verifyFileSignatureWorkflow to verify the file.
bool fileValidated() const
Return whether the last file passed to operator() was actually sucessfully verified.
void setKeyContext(const KeyContext &keycontext)
Set context for this checker.
SignatureCheckException ExceptionType
DefaultIntegral< bool, false > _fileAccepted
SignatureFileChecker()
Default Constructor.
void addPublicKey(const PublicKey &publickey, const KeyContext &keycontext=KeyContext())
add a public key to the list of known keys
const KeyContext & keyContext() const
Return the current context.
DefaultIntegral< bool, false > _fileValidated
String related utilities and Regular expression matching.
std::string checksum(const Pathname &file, const std::string &algorithm)
Compute a files checksum.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
function< void(const Pathname &file)> FileChecker
Functor signature used to check files.