Android APIs
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(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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AlgorithmParameterGeneratorSpi ()

Added in API level 1

Constructs a new instance of AlgorithmParameterGeneratorSpi .

Protected Methods

protected abstract AlgorithmParameters engineGenerateParameters ()

Added in API level 1

Computes and returns AlgorithmParameters for this generator's algorithm.

Returns
  • AlgorithmParameters for this generator's algorithm.

protected abstract void engineInit (int size, SecureRandom random)

Added in API level 1

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.

protected abstract void engineInit (AlgorithmParameterSpec genParamSpec, SecureRandom random)

Added in API level 1

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.