FileDocCategorySizeDatePackage
KeyGeneratorSpi.javaAPI DocAndroid 1.5 API2861Wed May 06 22:41:02 BST 2009javax.crypto

KeyGeneratorSpi

public abstract class KeyGeneratorSpi extends Object
The Service Provider Interface (SPI) definition for the {@code KeyGenerator} class.
see
KeyGenerator
since
Android 1.0

Fields Summary
Constructors Summary
public KeyGeneratorSpi()
Creates a new {@code KeyGeneratorSpi} instance.

since
Android 1.0

    
Methods Summary
protected abstract javax.crypto.SecretKeyengineGenerateKey()
Generates a secret key.

return
the generated secret key.
since
Android 1.0

protected abstract voidengineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)
Initializes this {@code KeyGeneratorSpi} instance with the specified algorithm parameters and randomness source.

param
params the parameters for the key generation algorithm.
param
random the randomness source for any random bytes.
throws
InvalidAlgorithmParameterException if the parameters cannot be uses to initialize this key generator algorithm.
since
Android 1.0

protected abstract voidengineInit(int keysize, java.security.SecureRandom random)
Initializes this {@code KeyGenerator} instance for the specified key size (in bits) using the specified randomness source.

param
keysize the size of the key (in bits).
param
random the randomness source for any random bytes.
since
Android 1.0

protected abstract voidengineInit(java.security.SecureRandom random)
Initializes this {@code KeyGenerator} with the specified randomness source.

param
random the randomness source for any random bytes.
since
Android 1.0