javax.crypto.spec
Class DHGenParameterSpec

java.lang.Object
  extended by javax.crypto.spec.DHGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class DHGenParameterSpec
extends Object
implements AlgorithmParameterSpec

This class represents the parameters needed for generating Diffie-Hellman parameters.

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHGenParameterSpec

public DHGenParameterSpec(int primeSize,
                          int exponentSize)
Create a new Diffie-Hellman parameter generator spec.

Parameters:
primeSize - The size of the prime, in bits.
exponentSize - The size of the exponent, in bits.
Method Detail

getExponentSize

public int getExponentSize()
Get the size of the exponent, in bits.

Returns:
The exponent size.

getPrimeSize

public int getPrimeSize()
Get the size of the prime, in bits.

Returns:
The prime size.