public class RawKey
extends java.lang.Object
implements java.security.Key
Copyright © 1997-1998
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
| Constructor and Description |
|---|
RawKey(java.lang.String algorithm,
byte[] data)
Constructs a key with the specified algorithm name and raw-encoded
data array.
|
RawKey(java.lang.String algorithm,
byte[] data,
int offset,
int length)
Constructs a secret key with the specified algorithm and raw-encoded
data subarray.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
int |
hashCode() |
public RawKey(java.lang.String algorithm,
byte[] data)
algorithm - the name of the algorithmdata - the key's raw-encoded datajava.lang.NullPointerException - if algorithm == null || data == nullpublic RawKey(java.lang.String algorithm,
byte[] data,
int offset,
int length)
algorithm - the name of the algorithmdata - the key's raw-encoded dataoffset - the offset of the encoding in datalength - the length of the encodingjava.lang.NullPointerException - if algorithm == null || data == nullpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.KeyRAW.public byte[] getEncoded()
getEncoded in interface java.security.Key