AlgorithmParameterGeneratorSpi - JRE Emulation | JRE Emulation
public abstract class

AlgorithmParameterGeneratorSpi

extends Object
java.lang.Object
   ↳ java.security.AlgorithmParameterGeneratorSpi

Class Overview

AlgorithmParameterGeneratorSpi is the Service Provider Interface (SPI) definition for AlgorithmParameterGenerator.

Summary

Public Constructors
AlgorithmParameterGeneratorSpi()
Constructs a new instance of AlgorithmParameterGeneratorSpi .
Protected Methods
abstract AlgorithmParameters engineGenerateParameters()
Computes and returns AlgorithmParameters for this generator's algorithm.
abstract void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)
Initializes this AlgorithmParameterGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom.
abstract void engineInit(int size, SecureRandom random)
Initializes this AlgorithmParameterGeneratorSpi with the given size and the given SecureRandom.
Inherited Methods
[Expand]
From class java.lang.Object

Public Constructors

public AlgorithmParameterGeneratorSpi ()

Constructs a new instance of AlgorithmParameterGeneratorSpi .

Protected Methods

protected abstract AlgorithmParameters engineGenerateParameters ()

Computes and returns AlgorithmParameters for this generator's algorithm.

Returns
  • AlgorithmParameters for this generator's algorithm.

protected abstract void engineInit (AlgorithmParameterSpec genParamSpec, SecureRandom random)

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.

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.