Class AlgorithmParameterGeneratorSpi
- java.lang.Object
-
- java.security.AlgorithmParameterGeneratorSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.util.BaseAlgorithmParameterGeneratorSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.dh.AlgorithmParameterGeneratorSpi
-
public class AlgorithmParameterGeneratorSpi extends BaseAlgorithmParameterGeneratorSpi
-
-
Field Summary
Fields Modifier and Type Field Description protected SecureRandomrandomprotected intstrength
-
Constructor Summary
Constructors Constructor Description AlgorithmParameterGeneratorSpi()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAlgorithmParameterGeneratorSpi
createParametersInstance
-
-
-
-
Field Detail
-
random
protected SecureRandom random
-
strength
protected int strength
-
-
Method Detail
-
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.
-
engineInit
protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException
Description 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
protected AlgorithmParameters engineGenerateParameters()
Description copied from class:AlgorithmParameterGeneratorSpiComputes and returnsAlgorithmParametersfor this generator's algorithm.- Specified by:
engineGenerateParametersin classAlgorithmParameterGeneratorSpi- Returns:
AlgorithmParametersfor this generator's algorithm.
-
-