public class AlgorithmParameterGeneratorSpi extends BaseAlgorithmParameterGeneratorSpi
| Modifier and Type | Field and Description |
|---|---|
protected DSAParameterGenerationParameters |
params |
protected SecureRandom |
random |
protected int |
strength |
| Constructor and Description |
|---|
AlgorithmParameterGeneratorSpi() |
| Modifier and Type | Method and Description |
|---|---|
protected AlgorithmParameters |
engineGenerateParameters()
Computes and returns
AlgorithmParameters for this generator's
algorithm. |
protected void |
engineInit(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
Initializes this
AlgorithmParameterGeneratorSpi with the given
AlgorithmParameterSpec and the given SecureRandom. |
protected void |
engineInit(int strength,
SecureRandom random)
Initializes this
AlgorithmParameterGeneratorSpi with the given
size and the given SecureRandom. |
createParametersInstanceprotected SecureRandom random
protected int strength
protected DSAParameterGenerationParameters params
protected void engineInit(int strength,
SecureRandom random)
AlgorithmParameterGeneratorSpiAlgorithmParameterGeneratorSpi with the given
size and the given SecureRandom. The default parameter set
will be used.engineInit in class AlgorithmParameterGeneratorSpistrength - the size (in number of bits).random - the source of randomness.protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException
AlgorithmParameterGeneratorSpiAlgorithmParameterGeneratorSpi with the given
AlgorithmParameterSpec and the given SecureRandom.engineInit in class AlgorithmParameterGeneratorSpigenParamSpec - the parameters to use.random - the source of randomness.InvalidAlgorithmParameterException - if the specified parameters are not supported.protected AlgorithmParameters engineGenerateParameters()
AlgorithmParameterGeneratorSpiAlgorithmParameters for this generator's
algorithm.engineGenerateParameters in class AlgorithmParameterGeneratorSpiAlgorithmParameters for this generator's algorithm.