Package java.security
Class AlgorithmParameterGeneratorSpi
- java.lang.Object
-
- java.security.AlgorithmParameterGeneratorSpi
-
- Direct Known Subclasses:
BaseAlgorithmParameterGenerator,BaseAlgorithmParameterGeneratorSpi
public abstract class AlgorithmParameterGeneratorSpi extends Object
AlgorithmParameterGeneratorSpiis the Service Provider Interface (SPI) definition forAlgorithmParameterGenerator.- See Also:
AlgorithmParameterGenerator
-
-
Constructor Summary
Constructors Constructor Description AlgorithmParameterGeneratorSpi()Constructs a new instance ofAlgorithmParameterGeneratorSpi.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract AlgorithmParametersengineGenerateParameters()Computes and returnsAlgorithmParametersfor this generator's algorithm.protected abstract voidengineInit(int size, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom.protected abstract voidengineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.
-
-
-
Method Detail
-
engineInit
protected abstract void engineInit(int size, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom. The default parameter set will be used.- Parameters:
size- the size (in number of bits).random- the source of randomness.
-
engineInit
protected abstract void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException
Initializes thisAlgorithmParameterGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.- Parameters:
genParamSpec- the parameters to use.random- the source of randomness.- Throws:
InvalidAlgorithmParameterException- if the specified parameters are not supported.
-
engineGenerateParameters
protected abstract AlgorithmParameters engineGenerateParameters()
Computes and returnsAlgorithmParametersfor this generator's algorithm.- Returns:
AlgorithmParametersfor this generator's algorithm.
-
-