java.security.spec
Class PKCS8EncodedKeySpec
java.lang.Object
|
+--java.security.spec.EncodedKeySpec
|
+--java.security.spec.PKCS8EncodedKeySpec
PKCS8 Encoded Key Specification class which is used to store
"PKCS#8" byte encoded keys.
Since:Author:PKCS8EncodedKeySpec
public PKCS8EncodedKeySpec(byte[] encodedKey)
Constructs a new PKCS8EncodedKeySpec with the specified encoded key.
Parameters:
getEncoded
public byte[] getEncoded()
Gets the encoded key in byte format.
getFormat
public final String getFormat()
Returns the name of the key format used which is "PKCS#8"
Returns:
- a string representing the name