|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.KeyPairGeneratorSpi
public abstract class KeyPairGeneratorSpi
KeyPairGeneratorSpi is the interface used to generate key pairs for security algorithms.
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. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyPairGeneratorSpi()
Method Detail |
---|
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 randomness
InvalidAlgorithmParameterException
public abstract KeyPair generateKeyPair()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- If this Object does not
implement CloneableCloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |