public class PKCS8EncodedKeySpec extends EncodedKeySpec
PrivateKeyInfo
。的
PrivateKeyInfo
语法定义的# PKCS 8标准如下:
privatekeyinfo::=序列{版版,privatekeyalgorithm privatekeyalgorithmidentifier,密钥的私钥,属性[ 0 ]隐式属性可选}版本::整数privatekeyalgorithmidentifier::= algorithmidentifier私钥::=字符串属性=:=设置属性
Key
,
KeyFactory
,
KeySpec
,
EncodedKeySpec
,
X509EncodedKeySpec
Constructor and Description |
---|
PKCS8EncodedKeySpec(byte[] encodedKey)
创建具有给定编码关键新pkcs8encodedkeyspec。
|
public PKCS8EncodedKeySpec(byte[] encodedKey)
encodedKey
的关键,这被认为是根据编码# PKCS 8标准。数组的内容被复制以防止后续的修改。
NullPointerException
-如果
encodedKey
是空的。
public byte[] getEncoded()
getEncoded
方法重写,继承类
EncodedKeySpec
public final String getFormat()
getFormat
方法重写,继承类
EncodedKeySpec
"PKCS#8"
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.