com.monica.javacom.ciphering
Class AESKey

java.lang.Object
  |
  +--com.monica.javacom.ciphering.AESKey

public class AESKey
extends java.lang.Object

This is the key object used to the AES object, which implements the AES encription algorithm. This object is generated by an AESKeyGenerator.

See Also:
AESKeyGenerator, AES

Constructor Summary
AESKey(int[] in_key)
          Constructs a new AESKey object.
AESKey(java.lang.String save)
          Constructs a new AESKey object.
 
Method Summary
 int[] getKey()
          Returns a copy of the AESKey random numbers.
 java.lang.String toString()
          Returns the serialized String representation of the AESKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AESKey

public AESKey(int[] in_key)
Constructs a new AESKey object. This method is normally called by the AESKeyGenerator.
Parameters:
in_key - this includes the initial random numbers of the AESKey

AESKey

public AESKey(java.lang.String save)
       throws LoadKeyException
Constructs a new AESKey object. This method is normally called when a serialized form of the AESKey is given, this reconstructs the object.
Parameters:
save - this includes the serialized form of the AESKey
Method Detail

getKey

public int[] getKey()
Returns a copy of the AESKey random numbers.
Returns:
the random numbers of the AESKey

toString

public java.lang.String toString()
Returns the serialized String representation of the AESKey.
Overrides:
toString in class java.lang.Object
Returns:
the serialized form of the AESKey