All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RC4Key

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

public class RC4Key
extends Object
implements SecretKey, Externalizable
A class wrapper for RC4 keys.


Variable Index

 o ident

Constructor Index

 o RC4Key()
Construct an empty RC4Key.
 o RC4Key(byte[])
Construct an RC4Key from a set of bytes.

Method Index

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

Variables

 o ident
 public static final String ident

Constructors

 o RC4Key
 public RC4Key()
Construct an empty RC4Key.

 o RC4Key
 public RC4Key(byte b[])
Construct an RC4Key from a set of bytes.

Parameters:
b - The data bytes.

Methods

 o getAlgorithm
 public String getAlgorithm()
return algorithm this key is for.

Parameters:
the - string "RC4".
 o getFormat
 public String getFormat()
return the format this key is in.

Parameters:
the - string "RAW".
 o getEncoded
 public byte[] getEncoded()
return an encoded representation of the key.

Returns:
the key as a byte array.
 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