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

Module trust

source code

Records who we trust to sign feeds.

Trust is divided up into domains, so that it is possible to trust a key in some cases and not others.

Classes
  TrustDB
A database of trusted keys.
  TrustMgr
A TrustMgr handles the process of deciding whether to trust new keys (contacting the key information server, prompting the user, accepting automatically, etc)
Functions
str
domain_from_url(url)
Extract the trust domain for a URL.
source code
Variables
  KEY_INFO_TIMEOUT = 10
  trust_db = TrustDB()
Singleton trust database instance.
Function Details

domain_from_url(url)

source code 

Extract the trust domain for a URL.

Parameters:
  • url (str) - the feed's URL
Returns: str
the trust domain
Raises:

Since: 0.27