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