public class DHParameterSpec extends Object implements AlgorithmParameterSpec
| Constructor and Description |
|---|
DHParameterSpec(BigInteger p,
BigInteger g)
Creates a new
DHParameterSpec instance with the specified
prime modulus and base generator. |
DHParameterSpec(BigInteger p,
BigInteger g,
int l)
Creates a new
DHParameterSpec instance with the specified
prime modulus, base generator and size (in bits) of the
random exponent. |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getG()
Returns the base generator of this parameter specification.
|
int |
getL()
Returns the size (in bits) of the random exponent.
|
BigInteger |
getP()
Returns the prime modulus of this parameter specification.
|
public DHParameterSpec(BigInteger p, BigInteger g)
DHParameterSpec instance with the specified
prime modulus and base generator.p - the prime modulus.g - the base generator.public DHParameterSpec(BigInteger p, BigInteger g, int l)
DHParameterSpec instance with the specified
prime modulus, base generator and size (in bits) of the
random exponent.p - the prime modulus.g - the base generator.l - the size of the random exponent (in bits).public BigInteger getP()
public BigInteger getG()
public int getL()