Skip to content

Most visited

Recently visited

navigation
Added in API level 1

AlgorithmParameterGeneratorSpi

public abstract class AlgorithmParameterGeneratorSpi
extends Object

java.lang.Object
   ↳ java.security.AlgorithmParameterGeneratorSpi


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

See also:

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(int size, SecureRandom random)

Initializes this AlgorithmParameterGeneratorSpi with the given size and the given SecureRandom.

abstract void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)

Initializes this AlgorithmParameterGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom.

Inherited methods

From class java.lang.Object

Public constructors

AlgorithmParameterGeneratorSpi

Added in API level 1
AlgorithmParameterGeneratorSpi ()

Constructs a new instance of AlgorithmParameterGeneratorSpi .

Protected methods

engineGenerateParameters

Added in API level 1
AlgorithmParameters engineGenerateParameters ()

Computes and returns AlgorithmParameters for this generator's algorithm.

Returns
AlgorithmParameters AlgorithmParameters for this generator's algorithm.

engineInit

Added in API level 1
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 int: the size (in number of bits).
random SecureRandom: the source of randomness.

engineInit

Added in API level 1
void engineInit (AlgorithmParameterSpec genParamSpec, 
                SecureRandom random)

Initializes this AlgorithmParameterGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom.

Parameters
genParamSpec AlgorithmParameterSpec: the parameters to use.
random SecureRandom: the source of randomness.
Throws
InvalidAlgorithmParameterException if the specified parameters are not supported.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.