public class DHPrivateKeySpec extends Object implements KeySpec
DHPublicKeySpec
Constructor and Description |
---|
DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g)
Create a new Diffie-Hellman private key spec.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
getG()
Get the base generator.
|
BigInteger |
getP()
Get the prime modulus.
|
BigInteger |
getX()
Get the private exponent.
|
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
x
- The private exponent.p
- The prime modulus.g
- The base generator.public BigInteger getG()
public BigInteger getP()
public BigInteger getX()