Class BaseAlgorithmParameterGenerator
java.lang.Object
java.security.AlgorithmParameterGeneratorSpi
org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator
- Direct Known Subclasses:
DES.AlgParamGen
public abstract class BaseAlgorithmParameterGenerator extends AlgorithmParameterGeneratorSpi
-
Field Summary
Fields Modifier and Type Field Description protected SecureRandomrandomprotected intstrength -
Constructor Summary
Constructors Constructor Description BaseAlgorithmParameterGenerator() -
Method Summary
Modifier and Type Method Description protected voidengineInit(int strength, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom.Methods inherited from class java.security.AlgorithmParameterGeneratorSpi
engineGenerateParameters, engineInit
-
Field Details
-
random
-
strength
protected int strength
-
-
Constructor Details
-
BaseAlgorithmParameterGenerator
public BaseAlgorithmParameterGenerator()
-
-
Method Details
-
engineInit
Description copied from class:AlgorithmParameterGeneratorSpiInitializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom. The default parameter set will be used.- Specified by:
engineInitin classAlgorithmParameterGeneratorSpi- Parameters:
strength- the size (in number of bits).random- the source of randomness.
-