|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.security.KeyPair
public final class KeyPair
此類別是簡單的密鑰對(公鑰和私鑰)持有者。它沒有增強任何安全性,另外初始化時應該將它當作 PrivateKey 對待。
PublicKey,
PrivateKey,
序列化表格| 建構子摘要 | |
|---|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
根據給定的公鑰和私鑰建構密鑰對。 |
|
| 方法摘要 | |
|---|---|
PrivateKey |
getPrivate()
返回對此密鑰對的私鑰元件的參考。 |
PublicKey |
getPublic()
返回對此密鑰對的公鑰元件的參考。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public KeyPair(PublicKey publicKey,
PrivateKey privateKey)
注意,此建構子只在產生的密鑰對中存儲對公鑰和私鑰元件的參考。這是安全的,因為 Key 物件是不可變的。
publicKey - 公鑰。privateKey - 私鑰。| 方法詳細資訊 |
|---|
public PublicKey getPublic()
public PrivateKey getPrivate()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。