Package g4ds :: Module securitymanager :: Class PersonalCredentialManager
[show private | hide private]
[frames | no frames]

Class PersonalCredentialManager


Maintains the list of personal confidentials for this node.

Unlike the CredentialManager, which stores information for all nodes only including public information, this class maintains also private information; namely private keys. It is only responible for credentials for this node. However, this node has to maintain a credential for each algorithm (RSA; DSA).
Method Summary
  __init__(self, loadFromDatabase)
Initialises the manager with the subjacent database.
  __str__(self)
Some basic information about the object
  addPersonalCredential(self, credential, persistent)
Add one personal credential to the manager.
  getPersonalCredential(self, credentialId)
Returns the personal credential instance for the given credential id.
List of Personal Credential getPersonalCredentials(self)
Returns a list of all saved personal credentials.

Method Details

__init__(self, loadFromDatabase=1)
(Constructor)

Initialises the manager with the subjacent database.
Parameters:
loadFromDatabase - Indicates, whether the manager shall be initialised from the database backend
           (type=Boolean)

__str__(self)
(Informal representation operator)

Some basic information about the object

addPersonalCredential(self, credential, persistent=1)

Add one personal credential to the manager.
Parameters:
credential - Credential to be added
           (type=PersonalCredential)
persistent - Indicates, whether the algorithm shall be written through to the database
           (type=Boolean)

getPersonalCredential(self, credentialId)

Returns the personal credential instance for the given credential id.

getPersonalCredentials(self)

Returns a list of all saved personal credentials.
Returns:
List of all personal credentials
           (type=List of Personal Credential)

Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 http://epydoc.sf.net