java.security
public abstract class KeyPairGeneratorSpi extends Object
Constructor and Description |
---|
KeyPairGeneratorSpi()
Constructs a new KeyPairGeneratorSpi
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone()
We override clone here to make it accessible for use by
DummyKeyPairGenerator.
|
abstract KeyPair |
generateKeyPair()
Generates a KeyPair according the rules for the algorithm.
|
void |
initialize(AlgorithmParameterSpec params,
SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified
AlgorithmParameterSpec and source of randomness
This is a concrete method.
|
abstract void |
initialize(int keysize,
SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified
key size and source of randomness
|
public KeyPairGeneratorSpi()
public abstract void initialize(int keysize, SecureRandom random)
keysize
- size of the key to generaterandom
- A SecureRandom source of randomnesspublic void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
params
- A AlgorithmParameterSpec to intialize withrandom
- A SecureRandom source of randomnessInvalidAlgorithmParameterException
public abstract KeyPair generateKeyPair()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- If this Object does not
implement CloneableCloneable