Package org.conscrypt
Class OpenSSLECKeyPairGenerator
- java.lang.Object
-
- java.security.KeyPairGeneratorSpi
-
- java.security.KeyPairGenerator
-
- org.conscrypt.OpenSSLECKeyPairGenerator
-
public final class OpenSSLECKeyPairGenerator extends KeyPairGenerator
-
-
Constructor Summary
Constructors Constructor Description OpenSSLECKeyPairGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidassertCurvesAreValid()For testing.KeyPairgenerateKeyPair()Computes and returns a new uniqueKeyPaireach time this method is called.voidinitialize(int keysize, SecureRandom random)Initializes thisKeyPairGeneratorwith the given key size and the givenSecureRandom.voidinitialize(AlgorithmParameterSpec param, SecureRandom random)Initializes thisKeyPairGeneratorwith the givenAlgorithmParameterSpecand the givenSecureRandom.-
Methods inherited from class java.security.KeyPairGenerator
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider, initialize, initialize
-
-
-
-
Method Detail
-
generateKeyPair
public KeyPair generateKeyPair()
Description copied from class:KeyPairGeneratorComputes and returns a new uniqueKeyPaireach time this method is called.This does exactly the same as
KeyPairGenerator.genKeyPair().- Overrides:
generateKeyPairin classKeyPairGenerator- Returns:
- a new unique
KeyPaireach time this method is called
-
initialize
public void initialize(int keysize, SecureRandom random)Description copied from class:KeyPairGeneratorInitializes thisKeyPairGeneratorwith the given key size and the givenSecureRandom. The default parameter set will be used.- Overrides:
initializein classKeyPairGenerator- Parameters:
keysize- the key sizerandom- the source of randomness
-
initialize
public void initialize(AlgorithmParameterSpec param, SecureRandom random) throws InvalidAlgorithmParameterException
Description copied from class:KeyPairGeneratorInitializes thisKeyPairGeneratorwith the givenAlgorithmParameterSpecand the givenSecureRandom.- Overrides:
initializein classKeyPairGenerator- Parameters:
param- the parameters to userandom- the source of randomness- Throws:
InvalidAlgorithmParameterException- if the specified parameters are not supported
-
assertCurvesAreValid
public static void assertCurvesAreValid()
For testing.
-
-