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.
-
ident
-
-
RC4Key()
- Construct an empty RC4Key.
-
RC4Key(byte[])
- Construct an RC4Key from a set of bytes.
-
getAlgorithm()
- return algorithm this key is for.
-
getEncoded()
- return an encoded representation of the key.
-
getFormat()
- return the format this key is in.
-
readExternal(ObjectInput)
- serialisation support using Externalizable.
-
writeExternal(ObjectOutput)
- serialisation support using Externalizable.
ident
public static final String ident
RC4Key
public RC4Key()
- Construct an empty RC4Key.
RC4Key
public RC4Key(byte b[])
- Construct an RC4Key from a set of bytes.
- Parameters:
- b - The data bytes.
getAlgorithm
public String getAlgorithm()
- return algorithm this key is for.
- Parameters:
- the - string "RC4".
getFormat
public String getFormat()
- return the format this key is in.
- Parameters:
- the - string "RAW".
getEncoded
public byte[] getEncoded()
- return an encoded representation of the key.
- Returns:
- the key as a byte array.
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