Class AlgorithmParameterGeneratorSpi
java.lang.Object
java.security.AlgorithmParameterGeneratorSpi
org.bouncycastle.jcajce.provider.asymmetric.dsa.AlgorithmParameterGeneratorSpi
public class AlgorithmParameterGeneratorSpi extends AlgorithmParameterGeneratorSpi
-
Field Summary
Fields Modifier and Type Field Description protected DSAParameterGenerationParametersparamsprotected SecureRandomrandomprotected intstrength -
Constructor Summary
Constructors Constructor Description AlgorithmParameterGeneratorSpi() -
Method Summary
Modifier and Type Method Description protected AlgorithmParametersengineGenerateParameters()Computes and returnsAlgorithmParametersfor this generator's algorithm.protected voidengineInit(int strength, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom.protected voidengineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.
-
Field Details
-
random
-
strength
protected int strength -
params
-
-
Constructor Details
-
AlgorithmParameterGeneratorSpi
public AlgorithmParameterGeneratorSpi()
-
-
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.
-
engineInit
protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterExceptionDescription copied from class:AlgorithmParameterGeneratorSpiInitializes thisAlgorithmParameterGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.- Specified by:
engineInitin classAlgorithmParameterGeneratorSpi- Parameters:
genParamSpec- the parameters to use.random- the source of randomness.- Throws:
InvalidAlgorithmParameterException- if the specified parameters are not supported.
-
engineGenerateParameters
Description copied from class:AlgorithmParameterGeneratorSpiComputes and returnsAlgorithmParametersfor this generator's algorithm.- Specified by:
engineGenerateParametersin classAlgorithmParameterGeneratorSpi- Returns:
AlgorithmParametersfor this generator's algorithm.
-