All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.DESKey

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

public class DESKey
extends Object
implements SecretKey, Externalizable
a class that provides a basic DES key.


Variable Index

 o ident

Constructor Index

 o DESKey()
constructor for serialisation
 o DESKey(byte[])
standard constructor.

Method Index

 o getAlgorithm()
returns the algorithm for this key.
 o getEncoded()
returns an encoded representation of this key.
 o getFormat()
returns the format for this key.
 o readExternal(ObjectInput)
serialisation support using Externalizable.
 o writeExternal(ObjectOutput)
serialisation support using Externalizable.

Variables

 o ident
 public static final String ident

Constructors

 o DESKey
 public DESKey()
constructor for serialisation

 o DESKey
 public DESKey(byte rawKey[])
standard constructor.

Parameters:
rawKey - the byte array containing the raw key data.

Methods

 o getAlgorithm
 public String getAlgorithm()
returns the algorithm for this key.

Returns:
the string "DES"
 o getFormat
 public String getFormat()
returns the format for this key.

Returns:
the string "RAW"
 o getEncoded
 public byte[] getEncoded()
returns an encoded representation of this key.

Returns:
the key as raw byte data.
 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
serialisation support using Externalizable.

Parameters:
out - the object output stream.
 o readExternal
 public void readExternal(ObjectInput in) throws IOException
serialisation support using Externalizable.

Parameters:
in - the object input stream.

All Packages  Class Hierarchy  This Package  Previous  Next  Index