|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.security.spec.EncodedKeySpec
java.security.spec.PKCS8EncodedKeySpec
public class PKCS8EncodedKeySpec
此類別表示按照 ASN.1 型別 PrivateKeyInfo 進行編碼的專用密鑰的 ASN.1 編碼。PKCS#8 中定義的 PrivateKeyInfo 語法如下:
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL }
Version ::= INTEGER
PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute
Key,
KeyFactory,
KeySpec,
EncodedKeySpec,
X509EncodedKeySpec| 建構子摘要 | |
|---|---|
PKCS8EncodedKeySpec(byte[] encodedKey)
根據給定的編碼密鑰創建一個新的 PKCS8EncodedKeySpec。 |
|
| 方法摘要 | |
|---|---|
byte[] |
getEncoded()
返回按照 PKCS #8 標準編碼的密鑰位元組。 |
String |
getFormat()
返回與此密鑰規範關聯的編碼格式的名稱。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public PKCS8EncodedKeySpec(byte[] encodedKey)
encodedKey - 假設按照 PKCS #8 標準對其進行編碼的密鑰。複製陣列的內容,以防隨後的修改。
NullPointerException - 如果 encodedKey 為 null。| 方法詳細資訊 |
|---|
public byte[] getEncoded()
EncodedKeySpec 中的 getEncodedpublic final String getFormat()
EncodedKeySpec 中的 getFormat"PKCS#8"。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。