javax.crypto.spec
public class DHGenParameterSpec extends Object implements AlgorithmParameterSpec
DHParameterSpec
Constructor and Description |
---|
DHGenParameterSpec(int primeSize,
int exponentSize)
Create a new Diffie-Hellman parameter generator spec.
|
Modifier and Type | Method and Description |
---|---|
int |
getExponentSize()
Get the size of the exponent, in bits.
|
int |
getPrimeSize()
Get the size of the prime, in bits.
|
public DHGenParameterSpec(int primeSize, int exponentSize)
primeSize
- The size of the prime, in bits.exponentSize
- The size of the exponent, in bits.public int getExponentSize()
public int getPrimeSize()