gnu.crypto.key
public class GnuSecretKey extends Object implements Key
Version: $Revision: 1.2 $
Constructor Summary | |
---|---|
GnuSecretKey(byte[] key, String algorithm)
Creates a new secret key. | |
GnuSecretKey(byte[] key, int offset, int length, String algorithm)
Creates a new secret key from a portion of a byte array.
|
Method Summary | |
---|---|
boolean | equals(Object o) |
String | getAlgorithm()
Returns the algorithm name, if any.
|
byte[] | getEncoded()
Returns the encoded key, which is merely the byte array this class was
created with. |
String | getFormat()
Returns the string "RAW".
|
String | toString() |
Parameters: key The raw, secret key. algorithm The algorithm name, which can be null or empty.
Parameters: key The raw, secret key. offset The offset at which the key begins. length The number of bytes that comprise the key. algorithm The algorithm name, which can be null or empty.
Returns: The algorithm name.
Returns: The raw key.
Returns: The string "RAW".