Package g4ds :: Module algorithmcontroller :: Class AlgorithmController
[show private | hide private]
[frames | no frames]

Class AlgorithmController


Maintains a dictionary with all available protocols.
Method Summary
  __init__(self, positiveList, negativeList, defaultAlgorithm)
Initialises the Algorithm controller.
  getAlgorithm(self, algName)
Provides the instance of the Algorithm with the requested name.
List of String getAvailableAlgorithms(self)
Returns a list of names of available algorithms.
List of String getOpenAlgorithms(self)
Returns a list of names of algorithms, which are currently initialised on this node.
  loadKeys(self)
Loads the required keys for the algorithms.

Method Details

__init__(self, positiveList=None, negativeList=None, defaultAlgorithm='rsa')
(Constructor)

Initialises the Algorithm controller.

The list of algorithms is loaded from the config file for algorithms.

If positiveList is given, only the algorithms defined in there will be used. If not positiveList is given, the negativeList will be checked. Algorithms given in there will be skipped when intialising the algorithms. If neither of the two lists is given, all algorithms defined in the config file for algorithms will be initialised and activated.
Parameters:
positiveList - List of names of algorithms to initialise
           (type=List of String)
negativeList - List of names of algorithms to skip for initialisation
           (type=List of String)
defaultAlgorithm - Name of algorithm to use if none is specified
           (type=String)

getAlgorithm(self, algName)

Provides the instance of the Algorithm with the requested name.

getAvailableAlgorithms(self)

Returns a list of names of available algorithms.
Returns:
List of names of algorithms
           (type=List of String)

getOpenAlgorithms(self)

Returns a list of names of algorithms, which are currently initialised on this node.
Returns:
List of names of algorithms
           (type=List of String)

loadKeys(self)

Loads the required keys for the algorithms.

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