Package javax.crypto.spec
Class DHGenParameterSpec
- java.lang.Object
-
- javax.crypto.spec.DHGenParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public class DHGenParameterSpec extends Object implements AlgorithmParameterSpec
The algorithm parameter specification for generating Diffie-Hellman parameters used in Diffie-Hellman key agreement.
-
-
Constructor Summary
Constructors Constructor Description DHGenParameterSpec(int primeSize, int exponentSize)Creates a newDHGenParameterSpecinstance with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExponentSize()Returns the size of the random exponent in bits.intgetPrimeSize()Returns the size of the prime modulus in bits.
-