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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AlgorithmParameterscreateParametersInstance(String algorithm)protected voidengineInit(int strength, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom.-
Methods inherited from class java.security.AlgorithmParameterGeneratorSpi
engineGenerateParameters, engineInit
-
-
-
-
Field Detail
-
random
protected SecureRandom random
-
strength
protected int strength
-
-
Method Detail
-
createParametersInstance
protected final AlgorithmParameters createParametersInstance(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
-
engineInit
protected void engineInit(int strength, SecureRandom random)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.
-
-