public abstract class KeyGeneratorSpi extends Object
KeyGenerator class.KeyGenerator| Constructor and Description |
|---|
KeyGeneratorSpi()
Creates a new
KeyGeneratorSpi instance. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SecretKey |
engineGenerateKey()
Generates a secret key.
|
protected abstract void |
engineInit(AlgorithmParameterSpec params,
SecureRandom random)
Initializes this
KeyGeneratorSpi instance with the specified
algorithm parameters and randomness source. |
protected abstract void |
engineInit(int keysize,
SecureRandom random)
Initializes this
KeyGenerator instance for the specified key
size (in bits) using the specified randomness source. |
protected abstract void |
engineInit(SecureRandom random)
Initializes this
KeyGenerator with the specified randomness
source. |
protected abstract SecretKey engineGenerateKey()
protected abstract void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
KeyGeneratorSpi instance with the specified
algorithm parameters and randomness source.params - the parameters for the key generation algorithm.random - the randomness source for any random bytes.InvalidAlgorithmParameterException - if the parameters cannot be uses to initialize this key
generator algorithm.protected abstract void engineInit(int keysize,
SecureRandom random)
KeyGenerator instance for the specified key
size (in bits) using the specified randomness source.keysize - the size of the key (in bits).random - the randomness source for any random bytes.protected abstract void engineInit(SecureRandom random)
KeyGenerator with the specified randomness
source.random - the randomness source for any random bytes.