org.ssonet.mechanisms
Class MechanismConfiguration

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.ssonet.mechanisms.MechanismConfiguration
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class MechanismConfiguration
extends java.util.Hashtable

See Also:
Serialized Form

Field Summary
static int KEYLENGTH
          Length of a key
static int MODES
          Preferencelist of modes (ECB, CFB, ...)
static int PROVIDERLIST
          Preferencelist of providers
static int ROUNDS
          Number of rounds for an algorithm
static int VARIANT
          in RSA benötigt: Key_Variante, gibt dort die Hashfunktion an
 
Constructor Summary
MechanismConfiguration()
          Creates an empty MechanismConfiguration object.
MechanismConfiguration(org.w3c.dom.Element rootElement)
          Creates a MechanismConfiguration from an XML-Element holding MechanismConfiguration data.
 
Method Summary
 org.w3c.dom.Document asXMLDocument()
          Stores the MechanismConfiguration into an XML-Document.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEYLENGTH

public static int KEYLENGTH
Length of a key


PROVIDERLIST

public static int PROVIDERLIST
Preferencelist of providers


MODES

public static int MODES
Preferencelist of modes (ECB, CFB, ...)


ROUNDS

public static int ROUNDS
Number of rounds for an algorithm


VARIANT

public static int VARIANT
in RSA benötigt: Key_Variante, gibt dort die Hashfunktion an

Constructor Detail

MechanismConfiguration

public MechanismConfiguration()
Creates an empty MechanismConfiguration object.


MechanismConfiguration

public MechanismConfiguration(org.w3c.dom.Element rootElement)
                       throws java.io.IOException
Creates a MechanismConfiguration from an XML-Element holding MechanismConfiguration data.

Parameters:
rootElement - the XML root element for the MechanismConfiguration
Method Detail

asXMLDocument

public org.w3c.dom.Document asXMLDocument()
Stores the MechanismConfiguration into an XML-Document.

Returns:
a XML-Document holding the MechanismConfiguration


Copyright © 2003 DRIM Team. All Rights Reserved.