DHParameterSpecpublic class DHParameterSpec extends Object implements AlgorithmParameterSpecThe algorithm parameter specification for the Diffie-Hellman algorithm. |
Fields Summary |
---|
private final BigInteger | p | private final BigInteger | g | private final int | l |
Constructors Summary |
---|
public DHParameterSpec(BigInteger p, BigInteger g)Creates a new DHParameterSpec instance with the specified
prime modulus and base generator.
this.p = p;
this.g = g;
this.l = 0;
| public 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.
this.p = p;
this.g = g;
this.l = l;
|
Methods Summary |
---|
public java.math.BigInteger | getG()Returns the base generator of this parameter specification.
return g;
| public int | getL()Returns the size (in bits) of the random exponent.
return l;
| public java.math.BigInteger | getP()Returns the prime modulus of this parameter specification.
return p;
|
|