com.ibm.crypto.provider
Class DSAParameterGenerator

java.lang.Object
  extended by java.security.AlgorithmParameterGeneratorSpi
      extended by com.ibm.crypto.provider.DSAParameterGenerator

public class DSAParameterGenerator
extends AlgorithmParameterGeneratorSpi

This class generates parameters for the DSA signature.


Constructor Summary
DSAParameterGenerator()
          Constructs a new instance of this class.
 
Method Summary
protected  AlgorithmParameters engineGenerateParameters()
          Answers the newly generated parameters.
protected  void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)
          Initializes the receiver with the specified parameters and source of randomness.
protected  void engineInit(int size, SecureRandom random)
          Initializes the receiver with the specified parameter size and source of randomness.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAParameterGenerator

public DSAParameterGenerator()
Constructs a new instance of this class.

Method Detail

engineGenerateParameters

protected AlgorithmParameters engineGenerateParameters()
Answers the newly generated parameters.

Specified by:
engineGenerateParameters in class AlgorithmParameterGeneratorSpi
Returns:
AlgorithmParameters the newly generated parameters.

engineInit

protected void engineInit(AlgorithmParameterSpec genParamSpec,
                          SecureRandom random)
                   throws InvalidAlgorithmParameterException
Initializes the receiver with the specified parameters and source of randomness.

Specified by:
engineInit in class AlgorithmParameterGeneratorSpi
Parameters:
genParamSpec - AlgorithmParameterSpec parameters for this algorithm
random - SecureRandom New secure random to use
Throws:
InvalidAlgorithmParameterException

engineInit

protected void engineInit(int size,
                          SecureRandom random)
Initializes the receiver with the specified parameter size and source of randomness.

Specified by:
engineInit in class AlgorithmParameterGeneratorSpi
Parameters:
size - int Size of the parameters
random - SecureRandom New secure random to use