webpg.keymanager

This class implements the methods to create/modify and interact with the key manager.

Summary
webpg.keymanagerThis class implements the methods to create/modify and interact with the key manager.
Functions
initSets up the reference to the webpg.background class and related objects
buildKeylistProxyCalls the buildKeyList method if the desired keylist is not already built (unless forced), after setting the wait dialog
buildKeylistGenerates the formatted, interactive keylist and populates the DOM.

Functions

init

init: function(browserWindow)

Sets up the reference to the webpg.background class and related objects

Parameters

browserWindow<window> A reference to the main browser window/object

buildKeylistProxy

buildKeylistProxy: function(keyList,
type,
openKey,
openSubkey,
openUID,
changedTab)

Calls the buildKeyList method if the desired keylist is not already built (unless forced), after setting the wait dialog

Parameters

keyList<JSON obj> A JSON object containing the keys and their associated data
type<str> The type of keylist being generated (“public”/”private”)
openKey<str> The ID for the Key to render in the open (viewing) status
openSubkey<str> The ID for the Subkey to render in the open (viewing) status
openUID<int> The index number for the UID to render in the open (viewing) status
changedTab<bool> Passed if we are just changing tabs

buildKeylist

buildKeylist: function(keyList,
type,
openKey,
openSubkey,
openUID)

Generates the formatted, interactive keylist and populates the DOM.  This function is a mess and needs some serious attention; it is ugly, but works quickly for what all it does.

Parameters

keyList<JSON obj> A JSON object containing the keys and their associated data
type<str> The type of keylist being generated (“public”/”private”)
openKey<str> The ID for the Key to render in the open (viewing) status
openSubkey<str> The ID for the Subkey to render in the open (viewing) status
openUID<int> The index number for the UID to render in the open (viewing) status
init: function(browserWindow)
Sets up the reference to the webpg.background class and related objects
buildKeylistProxy: function(keyList,
type,
openKey,
openSubkey,
openUID,
changedTab)
Calls the buildKeyList method if the desired keylist is not already built (unless forced), after setting the wait dialog
buildKeylist: function(keyList,
type,
openKey,
openSubkey,
openUID)
Generates the formatted, interactive keylist and populates the DOM.
Close