Package java.security

Class AlgorithmParameterGeneratorSpi

java.lang.Object
java.security.AlgorithmParameterGeneratorSpi
Direct Known Subclasses:
AlgorithmParameterGeneratorSpi, AlgorithmParameterGeneratorSpi, BaseAlgorithmParameterGenerator

public abstract class AlgorithmParameterGeneratorSpi
extends Object
AlgorithmParameterGeneratorSpi is the Service Provider Interface (SPI) definition for AlgorithmParameterGenerator.
See Also:
AlgorithmParameterGenerator
  • Constructor Details

    • AlgorithmParameterGeneratorSpi

      public AlgorithmParameterGeneratorSpi()
      Constructs a new instance of AlgorithmParameterGeneratorSpi .
  • Method Details

    • engineInit

      protected abstract void engineInit​(int size, SecureRandom random)
      Initializes this AlgorithmParameterGeneratorSpi with the given size and the given SecureRandom. 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 this AlgorithmParameterGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom.
      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 returns AlgorithmParameters for this generator's algorithm.
      Returns:
      AlgorithmParameters for this generator's algorithm.