cryptix.provider.key
Class RawKey
java.lang.Objectcryptix.provider.key.RawKey
- Key
public class RawKey
extends java.lang.Object
implements Key
- David Hopwood
- Raïf S. Naffah
- Ian Brown
RawKey(String algorithm, byte[] data)- Constructs a key with the specified algorithm name and raw-encoded
data array.
|
RawKey(String algorithm, byte[] data, int offset, int length)- Constructs a secret key with the specified algorithm and raw-encoded
data subarray.
|
RawKey
public RawKey(String algorithm,
byte[] data) Constructs a key with the specified algorithm name and raw-encoded
data array.
algorithm - the name of the algorithmdata - the key's raw-encoded data
RawKey
public RawKey(String algorithm,
byte[] data,
int offset,
int length) Constructs a secret key with the specified algorithm and raw-encoded
data subarray.
algorithm - the name of the algorithmdata - the key's raw-encoded dataoffset - the offset of the encoding in datalength - the length of the encoding
equals
public boolean equals(Object obj)
getAlgorithm
public String getAlgorithm()
- the standard algorithm name this key was generated for.
getEncoded
public byte[] getEncoded()
- a copy of the raw-encoded key data
getFormat
public String getFormat()
- the format used to encode this key. For this class it's
always
RAW.
hashCode
public int hashCode()