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