|
Uranium
Application Framework
|
Public Member Functions | |
| def | getInstance (cls) |
| def | getInstanceOrNone (cls) |
| def | __init__ |
| def | signedFolderPreStorageCheck |
| def | signedFolderCheck |
| def | signedFileCheck |
| def | setFollowSymlinks |
Static Public Member Functions | |
| def | getPublicRootKeyPath () |
| def | signatureFileExistsFor |
Trust for use in the main-application code, as opposed to the (keygen/signing) scripts. Can be seen as an elaborate wrapper around a public-key. Currently used as a singleton, as we currently have only one single 'master' public key for the entire app. See the 'createkeypair.py', 'signfile.py' and 'signfolder.py' scripts in the 'scripts' folder.
| def UM.Trust.Trust.getInstance | ( | cls | ) |
Get the 'canonical' Trusts object for this application. See also 'getPublicRootKeyPath'. :raise Exception: if the public key in `getPublicRootKeyPath()` can't be loaded for some reason. :return: The Trust singleton.
| def UM.Trust.Trust.getInstanceOrNone | ( | cls | ) |
Get the 'canonical' Trust object or None if not initialized yet Useful if only _optional_ verification is needed. :return: Trust singleton or None if problems occurred with loading the public key in `getPublicRootKeyPath()`.
|
static |
It is assumed that the application will have a 'master' public key. :return: Path to the 'master' public key of this application.