AMETAS.cipher
Class AMETASKey

java.lang.Object
  extended byAMETAS.cipher.AMETASKey
All Implemented Interfaces:
java.security.Key, java.io.Serializable
Direct Known Subclasses:
AMETASSCKey

public abstract class AMETASKey
extends java.lang.Object
implements java.security.Key

Abstrakte Klasse für Schlüssel.

See Also:
Serialized Form

Field Summary
protected  java.math.BigInteger m_biKey
          Bewahrt den Schlüssel auf.
protected static int sm_nKeysize
          Die Größe des Schlüssels in Bits.
 
Fields inherited from interface java.security.Key
serialVersionUID
 
Constructor Summary
AMETASKey()
          Standardkonstruktor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Vergleicht mit einem anderen Schlüssel.
abstract  java.lang.String getAlgorithm()
          Name des Algorithmus, zu dem der Schlüssel gehört.
abstract  byte[] getEncoded()
          Der Schlüssel als Byte-Folge.
abstract  java.lang.String getFormat()
          Format, in dem der Schlüssel gespeichert ist.
static int keysizeSpecification()
          Liefert die Schlüsselgröße als Bit-Anzahl.
 void setKey(java.math.BigInteger biKey)
          Setzen des Schlüssels.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sm_nKeysize

protected static int sm_nKeysize
Die Größe des Schlüssels in Bits.


m_biKey

protected java.math.BigInteger m_biKey
Bewahrt den Schlüssel auf.

Constructor Detail

AMETASKey

public AMETASKey()
Standardkonstruktor.

Method Detail

keysizeSpecification

public static int keysizeSpecification()
Liefert die Schlüsselgröße als Bit-Anzahl.

Returns:
Schlüsselgröße.

setKey

public void setKey(java.math.BigInteger biKey)
Setzen des Schlüssels.

Parameters:
biKey - Schlüssel als BigInteger-Wert.

getAlgorithm

public abstract java.lang.String getAlgorithm()
Name des Algorithmus, zu dem der Schlüssel gehört.

Specified by:
getAlgorithm in interface java.security.Key
Returns:
Name des Algorithmus.

getFormat

public abstract java.lang.String getFormat()
Format, in dem der Schlüssel gespeichert ist.

Specified by:
getFormat in interface java.security.Key
Returns:
Schlüsselformat.

getEncoded

public abstract byte[] getEncoded()
Der Schlüssel als Byte-Folge.

Specified by:
getEncoded in interface java.security.Key
Returns:
Schlüssel als Byte-Folge.

equals

public boolean equals(java.lang.Object obj)
Vergleicht mit einem anderen Schlüssel.

Parameters:
obj - Zweiter Schlüssel.
Returns:
true, wenn der andere Schlüssel dieselbe Größe und denselben Inhalt hat.