java.security.spec
public abstract class EncodedKeySpec extends Object implements KeySpec
Since: JDK 1.2
| Constructor Summary | |
|---|---|
| EncodedKeySpec(byte[] encodedKey)
Constructs a new EncodedKeySpec with the specified encoded key. | |
| Method Summary | |
|---|---|
| byte[] | getEncoded()
Gets the encoded key in byte format. |
| abstract String | getFormat()
Returns the name of the key format used.
|
Parameters: encodedKey A key to store
UNKNOWN: the encoded key
Returns: a string representing the name