public class DHPrivateKeySpec extends Object implements KeySpec
请注意,这个类不在指定的参数上执行任何验证。因此,即使它们是空的,指定的值也将直接返回。
DHPublicKeySpec
Constructor and Description |
---|
DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
构造函数需要一个私人的价值
x ,素数模
p ,和基地的发电机
g 。
|
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
x
,素数模
p
,和基地的发电机
g
。
x
私人值X
p
素数模p
g
基发生器G
public BigInteger getX()
x
。
x
public BigInteger getP()
p
。
p
public BigInteger getG()
g
。
g
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.