public class RawSecretKey extends RawKey implements SecretKey
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
Constructor and Description |
---|
RawSecretKey(java.lang.String algorithm,
byte[] data)
Constructs a secret key with the specified algorithm and raw-encoded
data array.
|
RawSecretKey(java.lang.String algorithm,
byte[] data,
int offset,
int length)
Constructs a secret key with the specified algorithm and raw-encoded
data subarray.
|
equals, getAlgorithm, getEncoded, getFormat, hashCode
public RawSecretKey(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 RawSecretKey(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 == null