com.ibm.security12.sun.security.provider
Class DSAParameterGenerator

java.lang.Object
  |
  +--com.ibm.security12.java.security.AlgorithmParameterGeneratorSpi
        |
        +--com.ibm.security12.sun.security.provider.DSAParameterGenerator

public class DSAParameterGenerator
extends AlgorithmParameterGeneratorSpi


Constructor Summary
DSAParameterGenerator()
           
 
Method Summary
protected  AlgorithmParameters engineGenerateParameters()
          Generates the parameters.
protected  void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)
          Initializes this parameter generator with a set of algorithm-specific parameter generation values.
protected  void engineInit(int strength, SecureRandom random)
          Initializes this parameter generator for a certain strength 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()
Method Detail

engineInit

protected void engineInit(int strength,
                          SecureRandom random)
Initializes this parameter generator for a certain strength and source of randomness.
Parameters:
strength - the strength (size of prime) in bits
random - the source of randomness
Overrides:
engineInit in class AlgorithmParameterGeneratorSpi

engineInit

protected void engineInit(AlgorithmParameterSpec genParamSpec,
                          SecureRandom random)
                   throws InvalidAlgorithmParameterException
Initializes this parameter generator with a set of algorithm-specific parameter generation values.
Parameters:
params - 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
Overrides:
engineInit in class AlgorithmParameterGeneratorSpi

engineGenerateParameters

protected AlgorithmParameters engineGenerateParameters()
Generates the parameters.
Returns:
the new AlgorithmParameters object
Overrides:
engineGenerateParameters in class AlgorithmParameterGeneratorSpi