libzypp 17.32.2
zyppng::TrustKeyRequest Class Reference

#include <ng/userrequest.h>

Inheritance diagram for zyppng::TrustKeyRequest:

Public Types

enum  KeyTrust { KEY_DONT_TRUST = 0 , KEY_TRUST_TEMPORARILY , KEY_TRUST_AND_IMPORT }
 

Public Member Functions

 ZYPP_DECL_PRIVATE_CONSTR_ARGS (TrustKeyRequest, std::string label, KeyTrust trust=KEY_DONT_TRUST, UserData userData={})
 
void setChoice (const KeyTrust sel)
 
KeyTrust choice () const
 
const std::string label () const
 
UserRequestType type () const override
 

Private Attributes

std::string _label
 
KeyTrust _answer = KEY_DONT_TRUST
 

Detailed Description

Definition at line 70 of file userrequest.h.

Member Enumeration Documentation

◆ KeyTrust

Keep in sync with zypp::KeyRingReport::KeyTrust, we do not want to include old APIs here if possible.

Enumerator
KEY_DONT_TRUST 

User has chosen not to trust the key.

KEY_TRUST_TEMPORARILY 

This basically means, we knew the key, but it was not trusted.

User has chosen to continue, but not import the key.

KEY_TRUST_AND_IMPORT 

Import the key.

This means saving the key in the trusted database so next run it will appear as trusted. Nothing to do with KEY_TRUST_TEMPORARILY, as you CAN trust a key without importing it, basically you will be asked every time again. There are programs who prefer to manage the trust keyring on their own and use trustKey without importing it into rpm.

Definition at line 78 of file userrequest.h.

Member Function Documentation

◆ ZYPP_DECL_PRIVATE_CONSTR_ARGS()

zyppng::TrustKeyRequest::ZYPP_DECL_PRIVATE_CONSTR_ARGS ( TrustKeyRequest ,
std::string label,
KeyTrust trust = KEY_DONT_TRUST,
UserData userData = {} )

◆ setChoice()

void zyppng::TrustKeyRequest::setChoice ( const KeyTrust sel)

Definition at line 40 of file userrequest.cc.

◆ choice()

TrustKeyRequest::KeyTrust zyppng::TrustKeyRequest::choice ( ) const

Definition at line 43 of file userrequest.cc.

◆ label()

const std::string zyppng::TrustKeyRequest::label ( ) const

Definition at line 46 of file userrequest.cc.

◆ type()

UserRequestType zyppng::TrustKeyRequest::type ( ) const
override

Definition at line 49 of file userrequest.cc.

Member Data Documentation

◆ _label

std::string zyppng::TrustKeyRequest::_label
private

Definition at line 110 of file userrequest.h.

◆ _answer

KeyTrust zyppng::TrustKeyRequest::_answer = KEY_DONT_TRUST
private

Definition at line 111 of file userrequest.h.


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