FileDocCategorySizeDatePackage
AlgorithmParameterGeneratorSpi.javaAPI DocAndroid 1.5 API2715Wed May 06 22:41:04 BST 2009java.security

AlgorithmParameterGeneratorSpi

public abstract class AlgorithmParameterGeneratorSpi extends Object
{@code AlgorithmParameterGeneratorSpi} is the Service Provider Interface (SPI) definition for {@code AlgorithmParameterGenerator}.
see
AlgorithmParameterGenerator
since
Android 1.0

Fields Summary
Constructors Summary
public AlgorithmParameterGeneratorSpi()
Constructs a new instance of {@code AlgorithmParameterGeneratorSpi} .

since
Android 1.0

    
Methods Summary
protected abstract java.security.AlgorithmParametersengineGenerateParameters()
Computes and returns {@code AlgorithmParameters} for this generator's algorithm.

return
{@code AlgorithmParameters} for this generator's algorithm.
since
Android 1.0

protected abstract voidengineInit(int size, java.security.SecureRandom random)
Initializes this {@code AlgorithmParameterGeneratorSpi} with the given size and the given {@code SecureRandom}. The default parameter set will be used.

param
size the size (in number of bits).
param
random the source of randomness.
since
Android 1.0

protected abstract voidengineInit(java.security.spec.AlgorithmParameterSpec genParamSpec, java.security.SecureRandom random)
Initializes this {@code AlgorithmParameterGeneratorSpi} with the given {@code AlgorithmParameterSpec} and the given {@code SecureRandom}.

param
genParamSpec the parameters to use.
param
random the source of randomness.
throws
InvalidAlgorithmParameterException if the specified parameters are not supported.
since
Android 1.0