KeySpecpublic class DHPrivateKeySpec extends Object implements KeySpec
Note that this class does not perform any validation on specified parameters. Thus, the specified values are returned directly even if they are null.
DHPublicKeySpec| 构造器 | 说明 |
|---|---|
DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g) |
Constructor that takes a private value
x, a prime
modulus p, and a base generator g. |
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
x, a prime
modulus p, and a base generator g.x - private value xp - prime modulus pg - base generator gpublic BigInteger getX()
x.xpublic BigInteger getP()
p.ppublic BigInteger getG()
g.g