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