KeySpecpublic class DHPublicKeySpec 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.
DHPrivateKeySpec| 构造器 | 说明 |
|---|---|
DHPublicKeySpec(BigInteger y,
BigInteger p,
BigInteger g) |
Constructor that takes a public value
y, a prime
modulus p, and a base generator g. |
public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
y, a prime
modulus p, and a base generator g.y - public value yp - prime modulus pg - base generator gpublic BigInteger getY()
y.ypublic BigInteger getP()
p.ppublic BigInteger getG()
g.g