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.
-
ident
-
-
DESKey()
- constructor for serialisation
-
DESKey(byte[])
- standard constructor.
-
getAlgorithm()
- returns the algorithm for this key.
-
getEncoded()
- returns an encoded representation of this key.
-
getFormat()
- returns the format for this key.
-
readExternal(ObjectInput)
- serialisation support using Externalizable.
-
writeExternal(ObjectOutput)
- serialisation support using Externalizable.
ident
public static final String ident
DESKey
public DESKey()
- constructor for serialisation
DESKey
public DESKey(byte rawKey[])
- standard constructor.
- Parameters:
- rawKey - the byte array containing the raw key data.
getAlgorithm
public String getAlgorithm()
- returns the algorithm for this key.
- Returns:
- the string "DES"
getFormat
public 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 raw byte data.
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- serialisation support using Externalizable.
- Parameters:
- out - the object output stream.
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