public class PKCS8EncodedKeySpec extends EncodedKeySpec
| Constructor and Description |
|---|
PKCS8EncodedKeySpec(byte[] encodedKey)
Constructs a new PKCS8EncodedKeySpec with the specified encoded key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
Gets the encoded key in byte format.
|
String |
getFormat()
Returns the name of the key format used which is "PKCS#8"
|
public PKCS8EncodedKeySpec(byte[] encodedKey)
encodedKey - A key to store, assumed to be "PKCS#8"public byte[] getEncoded()
getEncoded in class EncodedKeySpecpublic final String getFormat()
getFormat in class EncodedKeySpec