public abstract class AlgorithmParameterGeneratorSpi extends Object
Constructor and Description |
---|
AlgorithmParameterGeneratorSpi()
Constructs a new AlgorithmParameterGeneratorSpi
|
Modifier and Type | Method and Description |
---|---|
protected abstract AlgorithmParameters |
engineGenerateParameters()
Generate a new set of AlgorithmParameters.
|
protected abstract void |
engineInit(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
Initializes the parameter generator with the specified
AlgorithmParameterSpec and SecureRandom classes.
|
protected abstract void |
engineInit(int size,
SecureRandom random)
Initializes the parameter generator with the specified size
and SecureRandom
|
public AlgorithmParameterGeneratorSpi()
protected abstract void engineInit(int size, SecureRandom random)
size
- the size( in number of bits)random
- the SecureRandom class to use for randomnessprotected abstract void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException
genParamSpec
- the AlgorithmParameterSpec class to userandom
- the SecureRandom class to use for randomnessInvalidAlgorithmParameterException
- genParamSpec is invalidprotected abstract AlgorithmParameters engineGenerateParameters()