java.security
public abstract class KeyPairGeneratorSpi extends Object
Constructor Summary | |
---|---|
KeyPairGeneratorSpi()
Constructs a new KeyPairGeneratorSpi |
Method Summary | |
---|---|
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.
|
abstract void | initialize(int keysize, SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified
key size and source of randomness |
void | initialize(AlgorithmParameterSpec params, SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified
AlgorithmParameterSpec and source of randomness
This is a concrete method. |
Returns: a key pair
Parameters: keysize size of the key to generate random A SecureRandom source of randomness
Parameters: params A AlgorithmParameterSpec to intialize with random A SecureRandom source of randomness
Throws: InvalidAlgorithmParameterException