|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.crypto.spec.DHPrivateKeySpec
public class DHPrivateKeySpec
此類別使用其關聯的參數指定一個 Diffie-Hellman 私鑰。
注意,此類別不在任何指定的參數上執行任何驗證。因此,即使給定的值為 null 也會被直接返回。
DHPublicKeySpec| 建構子摘要 | |
|---|---|
DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g)
帶有一個私有值 x、一個質數模數 p 以及一個基產生器 g 的建構子。 |
|
| 方法摘要 | |
|---|---|
BigInteger |
getG()
返回基產生器 g。 |
BigInteger |
getP()
返回質數模數 p。 |
BigInteger |
getX()
返回私有值 x。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g)
x、一個質數模數 p 以及一個基產生器 g 的建構子。
x - 私有值 xp - 質數模數 pg - 基產生器 g| 方法詳細資訊 |
|---|
public BigInteger getX()
x。
xpublic BigInteger getP()
p。
ppublic BigInteger getG()
g。
g
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。