public abstract class EncodedKeySpec extends Object implements KeySpec
| Constructor and Description |
|---|
EncodedKeySpec(byte[] encodedKey)
Constructs a new EncodedKeySpec with the specified encoded key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
Gets the encoded key in byte format.
|
abstract String |
getFormat()
Returns the name of the key format used.
|
public EncodedKeySpec(byte[] encodedKey)
encodedKey - A key to storepublic byte[] getEncoded()