public final class OpenSSLECKeyPairGenerator extends KeyPairGenerator
| Constructor and Description |
|---|
OpenSSLECKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertCurvesAreValid()
For testing.
|
KeyPair |
generateKeyPair()
Computes and returns a new unique
KeyPair each time this method
is called. |
void |
initialize(AlgorithmParameterSpec param,
SecureRandom random)
Initializes this
KeyPairGenerator with the given AlgorithmParameterSpec and the given SecureRandom. |
void |
initialize(int keysize,
SecureRandom random)
Initializes this
KeyPairGenerator with the given key size and the
given SecureRandom. |
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider, initialize, initializepublic KeyPair generateKeyPair()
KeyPairGeneratorKeyPair each time this method
is called.
This does exactly the same as KeyPairGenerator.genKeyPair().
generateKeyPair in class KeyPairGeneratorKeyPair each time this method is calledpublic void initialize(int keysize,
SecureRandom random)
KeyPairGeneratorKeyPairGenerator with the given key size and the
given SecureRandom. The default parameter set will be used.initialize in class KeyPairGeneratorkeysize - the key sizerandom - the source of randomnesspublic void initialize(AlgorithmParameterSpec param, SecureRandom random) throws InvalidAlgorithmParameterException
KeyPairGeneratorKeyPairGenerator with the given AlgorithmParameterSpec and the given SecureRandom.initialize in class KeyPairGeneratorparam - the parameters to userandom - the source of randomnessInvalidAlgorithmParameterException - if the specified parameters are not supportedpublic static void assertCurvesAreValid()