|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.security.KeyRep
public class KeyRep
已序列化的 Key 物件的標準表示形式。
注意,序列化的 Key 可能包含不應該在不可信任的環境中顯示的敏感資訊。有關更多資訊,請參見序列化規範的安全附錄。
Key,
KeyFactory,
SecretKeySpec,
X509EncodedKeySpec,
PKCS8EncodedKeySpec,
序列化表格| 巢狀類別摘要 | |
|---|---|
static class |
KeyRep.Type
Key 型別。 |
| 建構子摘要 | |
|---|---|
KeyRep(KeyRep.Type type,
String algorithm,
String format,
byte[] encoded)
建構替換的 Key 類別。 |
|
| 方法摘要 | |
|---|---|
protected Object |
readResolve()
解析 Key 物件。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public KeyRep(KeyRep.Type type,
String algorithm,
String format,
byte[] encoded)
type - Type.SECRET、Type.PUBLIC 或 Type.PRIVATE 之一algorithm - 從 Key.getAlgorithm() 返回的演算法format - 從 Key.getFormat() 返回的編碼格式encoded - 從 Key.getEncoded() 返回的編碼位元組
NullPointerException - 如果 type 為 null、algorithm 為 null、format 為 null 或 encoded 為 null| 方法詳細資訊 |
|---|
protected Object readResolve()
throws ObjectStreamException
此方法支持三種 Type/format 組合:
ObjectStreamException - 如果 Type/format 組合是不能識別的;如果演算法、密鑰格式或編碼的密鑰位元組是不能識別的/無效的;如果由於任何原因密鑰解析失敗。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。