| Constructor and Description |
|---|
DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g)
Creates a new
DHPrivateKeySpec with the specified private
value x. |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getG()
Returns the base generator
g. |
BigInteger |
getP()
Returns the prime modulus
p. |
BigInteger |
getX()
Returns the private value
x. |
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
DHPrivateKeySpec with the specified private
value x. prime modulus p and base
generator g.x - the private value.p - the prime modulus.g - the base generator.public BigInteger getX()
x.x.public BigInteger getP()
p.p.public BigInteger getG()
g.g.