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