au.net.aba.crypto.provider
Class TwofishKey

java.lang.Object
  |
  +--au.net.aba.crypto.provider.TwofishKey

public class TwofishKey
extends java.lang.Object
implements SecretKey

A class wrapper for Twofish keys.

See Also:
Serialized Form

Field Summary
static java.lang.String ident
           
 
Constructor Summary
TwofishKey(byte[] rawKey)
          The basic constructor Key length is variable up to 256 bits.
 
Method Summary
 java.lang.String getAlgorithm()
          returns the algorithm for this key.
 byte[] getEncoded()
          returns an encoded representation of this key.
 java.lang.String getFormat()
          returns the format for this key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

TwofishKey

public TwofishKey(byte[] rawKey)
The basic constructor Key length is variable up to 256 bits. (32 bytes)
Parameters:
rawKey - the bytes making up the key.
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
returns the algorithm for this key.
Returns:
the string "Twofish"

getFormat

public java.lang.String getFormat()
returns the format for this key.
Returns:
the string "RAW"

getEncoded

public byte[] getEncoded()
returns an encoded representation of this key.
Returns:
the key as a byte array