javax.crypto.spec
public class DHGenParameterSpec extends Object implements AlgorithmParameterSpec
Since: 1.4
See Also: DHParameterSpec
| Constructor Summary | |
|---|---|
| DHGenParameterSpec(int primeSize, int exponentSize)
Create a new Diffie-Hellman parameter generator spec.
| |
| Method Summary | |
|---|---|
| int | getExponentSize()
Get the size of the exponent, in bits.
|
| int | getPrimeSize()
Get the size of the prime, in bits.
|
Parameters: primeSize The size of the prime, in bits. exponentSize The size of the exponent, in bits.
Returns: The exponent size.
Returns: The prime size.