public abstract class EncodedKeySpec extends Object implements KeySpec
Constructor and Description |
---|
EncodedKeySpec(byte[] encodedKey)
Creates a new
EncodedKeySpec with the specified encoded key bytes. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded()
Returns the encoded key bytes.
|
abstract String |
getFormat()
Returns the name of the encoding format of this encoded key
specification.
|
public EncodedKeySpec(byte[] encodedKey)
EncodedKeySpec
with the specified encoded key bytes.encodedKey
- the encoded key bytes.public byte[] getEncoded()
public abstract String getFormat()