Package zeroinstall :: Package injector :: Module trust :: Class TrustMgr
[frames] | no frames]

Class TrustMgr

source code

object --+
         |
        TrustMgr

A TrustMgr handles the process of deciding whether to trust new keys (contacting the key information server, prompting the user, accepting automatically, etc)


Since: 0.53

Instance Methods
 
__init__(self, config)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
None | Blocker
confirm_keys(self, pending)
We don't trust any of the signatures yet.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, config)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__

confirm_keys(self, pending)

source code 

We don't trust any of the signatures yet. Collect information about them and add the keys to the trusted list, possibly after confirming with the user (via config.handler). Updates the trust database, and then calls trust.TrustDB.notify.

Parameters:
  • pending (PendingFeed) - an object holding details of the updated feed
Returns: None | Blocker
A blocker that triggers when the user has chosen, or None if already done.
Decorators:
  • @tasks.async

Since: 0.53