libzypp 17.31.1
zypp::repo::ExtraSignatureFileChecker Class Reference
Inheritance diagram for zypp::repo::ExtraSignatureFileChecker:

Public Types

typedef function< void(const Pathname &file_r)> PreCheckCB
 Called after download but before verifying the file. More...
- Public Types inherited from zypp::SignatureFileChecker
typedef SignatureCheckException ExceptionType
- Public Types inherited from zypp::keyring::VerifyFileContext
typedef std::set< std::string > BuddyKeys
 List of key safe key ids to import IFF fileValidated. More...

Public Member Functions

 ExtraSignatureFileChecker ()
 ExtraSignatureFileChecker (Pathname signature_r)
void preCheckCB (PreCheckCB cb_r)
void operator() (const Pathname &file_r) const
- Public Member Functions inherited from zypp::SignatureFileChecker
 SignatureFileChecker ()
 Default Ctor for unsigned files. More...
 SignatureFileChecker (Pathname signature_r)
 Ctor taking the detached signature. More...
void addPublicKey (const PublicKey &publickey_r)
 Add a public key to the list of known keys. More...
void addPublicKey (const Pathname &publickey_r)
void operator() (const Pathname &file_r) const
 Call KeyRing::verifyFileSignatureWorkflow to verify the file. More...
- Public Member Functions inherited from zypp::keyring::VerifyFileContext
 VerifyFileContext ()
 Ctor. More...
 VerifyFileContext (Pathname file_r)
 Ctor may take file to verify and detatched signature. More...
 VerifyFileContext (Pathname file_r, Pathname signature_r)
 Ctor may take file to verify and detatched signature. More...
 ~VerifyFileContext ()
const Pathnamefile () const
 File to verify. More...
void file (Pathname file_r)
const Pathnamesignature () const
 Detached signature or empty. More...
void signature (Pathname signature_r)
std::string shortFile () const
 Short name for file (default: basename). More...
void shortFile (std::string shortFile_r)
const KeyContextkeyContext () const
 KeyContext passed to callbacks More...
void keyContext (KeyContext keyContext_r)
const BuddyKeysbuddyKeys () const
void addBuddyKey (std::string sid_r)
void resetResults ()
 Reset all result values to safe defaults. More...
bool fileAccepted () const
 May return true due to user interaction or global defaults even if the signature was not actually verified. More...
void fileAccepted (bool yesno_r)
bool fileValidated () const
 Whether the signature was actually successfully verified. More...
void fileValidated (bool yesno_r)
const std::string & signatureId () const
 The id of the gpg key which signed the file. More...
void signatureId (std::string signatureId_r)
bool signatureIdTrusted () const
 Whether the SignatureId is in the trusted keyring (not temp. More...
void signatureIdTrusted (bool yesno_r)

Private Attributes

PreCheckCB _preCheckCB

Additional Inherited Members

Detailed Description

Definition at line 29 of file

Member Typedef Documentation

◆ PreCheckCB

typedef function<void( const Pathname & file_r )> zypp::repo::ExtraSignatureFileChecker::PreCheckCB

Called after download but before verifying the file.

Definition at line 33 of file

Constructor & Destructor Documentation

◆ ExtraSignatureFileChecker() [1/2]

zypp::repo::ExtraSignatureFileChecker::ExtraSignatureFileChecker ( )

Definition at line 35 of file

◆ ExtraSignatureFileChecker() [2/2]

zypp::repo::ExtraSignatureFileChecker::ExtraSignatureFileChecker ( Pathname  signature_r)

Definition at line 38 of file

Member Function Documentation

◆ preCheckCB()

void zypp::repo::ExtraSignatureFileChecker::preCheckCB ( PreCheckCB  cb_r)

Definition at line 42 of file

◆ operator()()

void zypp::repo::ExtraSignatureFileChecker::operator() ( const Pathname file_r) const

Definition at line 45 of file

Member Data Documentation

◆ _preCheckCB

PreCheckCB zypp::repo::ExtraSignatureFileChecker::_preCheckCB

Definition at line 53 of file

The documentation for this class was generated from the following file: