public class DHParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpec
Each set of parameters consists of a base generator
g, a prime modulus p, and an
optional length, in bits, of the private exponent.
See PKCS #3 - Diffie-Hellman Key Agreement Standard for more information.
KeyAgreement| Constructor and Description |
|---|
DHParameterSpec(java.math.BigInteger p,
java.math.BigInteger g)
Create a new set of Diffie-Hellman parameters.
|
DHParameterSpec(java.math.BigInteger p,
java.math.BigInteger g,
int l)
Create a new set of Diffie-Hellman parameters.
|
public DHParameterSpec(java.math.BigInteger p, java.math.BigInteger g)
p - The prime modulus.g - The base generator.public DHParameterSpec(java.math.BigInteger p, java.math.BigInteger g, int l)
p - The prime modulus.g - The base generator.l - The size of the private exponent, in bits.public java.math.BigInteger getG()
public int getL()
public java.math.BigInteger getP()