javax.crypto.spec
public class DHPrivateKeySpec extends Object implements KeySpec
Since: 1.4
See Also: DHPublicKeySpec
Constructor Summary | |
---|---|
DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
Create a new Diffie-Hellman private key spec.
|
Method Summary | |
---|---|
BigInteger | getG()
Get the base generator.
|
BigInteger | getP()
Get the prime modulus.
|
BigInteger | getX()
Get the private exponent.
|
Parameters: x The private exponent. p The prime modulus. g The base generator.
Returns: The base generator.
Returns: The prime modulus.
Returns: The private exponent.