java.security.spec
public class PKCS8EncodedKeySpec extends EncodedKeySpec
Since: JDK 1.2
Constructor Summary | |
---|---|
PKCS8EncodedKeySpec(byte[] encodedKey)
Constructs a new PKCS8EncodedKeySpec with the specified encoded key. |
Method Summary | |
---|---|
byte[] | getEncoded()
Gets the encoded key in byte format. |
String | getFormat()
Returns the name of the key format used which is "PKCS#8" |
Parameters: encodedKey A key to store, assumed to be "PKCS#8"
UNKNOWN: the encoded key
Returns: a string representing the name