Package g4ds :: Module securitymanager_db :: Class SecDB
[show private | hide private]
[frames | no frames]

Class SecDB


Handles all requests form the security module for backend connectivity with database.
Method Summary
  __init__(self)
Initialises the database manager for secure communication.
  addAlgorithm(self, algorithm)
Adds one algorithm to the algorithm table in the database.
  addCredential(self, credential)
Adds one credential to the credential table in the database.
  addPersonalCredential(self, credential)
Adds one personal credential to the personal credential table in the database.
  getAlgorithms(self)
Returns a list of all algorithms in the database.
  getCredentials(self)
Returns a list of all credentials in the database.
  getPersonalCredentials(self)
Returns a list of all personal credentials in the database.
  removeCredentials(self, credentialid, memberid)
Removes credentials from the database.
  shutdown(self)
Closes open database connections.

Method Details

__init__(self)
(Constructor)

Initialises the database manager for secure communication.

The database connection is established using the appropriate settings in the configuations file / module config.py.

Please run shutdown before you shutdown the application in order to clear the database connections.

addAlgorithm(self, algorithm)

Adds one algorithm to the algorithm table in the database.

addCredential(self, credential)

Adds one credential to the credential table in the database.

addPersonalCredential(self, credential)

Adds one personal credential to the personal credential table in the database.

getAlgorithms(self)

Returns a list of all algorithms in the database.

getCredentials(self)

Returns a list of all credentials in the database.

getPersonalCredentials(self)

Returns a list of all personal credentials in the database.

removeCredentials(self, credentialid=None, memberid=None)

Removes credentials from the database.

Depending on which parameters are given. If no parameter is set, all data in the table will be dropped.

shutdown(self)

Closes open database connections.

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