public final class

DHParameterGenerator

extends AlgorithmParameterGeneratorSpi
java.lang.Object
   ↳ java.security.AlgorithmParameterGeneratorSpi
     ↳ com.sun.crypto.provider.DHParameterGenerator

Summary

Public Constructors
DHParameterGenerator()
Protected Methods
AlgorithmParameters engineGenerateParameters()
Generates the parameters.
void engineInit(int keysize, SecureRandom random)
Initializes this parameter generator for a certain keysize and source of randomness.
void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)
Initializes this parameter generator with a set of parameter generation values, which specify the size of the prime modulus and the size of the random exponent, both in bits.
[Expand]
Inherited Methods
From class java.security.AlgorithmParameterGeneratorSpi
From class java.lang.Object

Public Constructors

public DHParameterGenerator ()

Protected Methods

protected AlgorithmParameters engineGenerateParameters ()

Generates the parameters.

Returns
  • the new AlgorithmParameters object

protected void engineInit (int keysize, SecureRandom random)

Initializes this parameter generator for a certain keysize and source of randomness. The keysize is specified as the size in bits of the prime modulus.

Parameters
keysize the keysize (size of prime modulus) in bits
random the source of randomness

protected void engineInit (AlgorithmParameterSpec genParamSpec, SecureRandom random)

Initializes this parameter generator with a set of parameter generation values, which specify the size of the prime modulus and the size of the random exponent, both in bits.

Parameters
genParamSpec the set of algorithm-specific parameter generation values.
random the source of randomness
Throws
InvalidAlgorithmParameterException if the given parameter generation values are inappropriate for this parameter generator