Package org.conscrypt
Class OpenSSLRSAKeyPairGenerator
java.lang.Object
java.security.KeyPairGeneratorSpi
org.conscrypt.OpenSSLRSAKeyPairGenerator
public class OpenSSLRSAKeyPairGenerator extends KeyPairGeneratorSpi
-
Constructor Summary
Constructors Constructor Description OpenSSLRSAKeyPairGenerator() -
Method Summary
Modifier and Type Method Description KeyPairgenerateKeyPair()Computes and returns a new uniqueKeyPaireach time this method is called.voidinitialize(int keysize, SecureRandom random)Initializes thisKeyPairGeneratorSpiwith the given key size and the givenSecureRandom.voidinitialize(AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyPairGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.
-
Constructor Details
-
OpenSSLRSAKeyPairGenerator
public OpenSSLRSAKeyPairGenerator()
-
-
Method Details
-
generateKeyPair
Description copied from class:KeyPairGeneratorSpiComputes and returns a new uniqueKeyPaireach time this method is called.- Specified by:
generateKeyPairin classKeyPairGeneratorSpi- Returns:
- a new unique
KeyPaireach time this method is called.
-
initialize
Description copied from class:KeyPairGeneratorSpiInitializes thisKeyPairGeneratorSpiwith the given key size and the givenSecureRandom. The default parameter set will be used.- Specified by:
initializein classKeyPairGeneratorSpi- Parameters:
keysize- the key size (number of bits).random- the source of randomness.
-
initialize
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterExceptionDescription copied from class:KeyPairGeneratorSpiInitializes thisKeyPairGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.- Overrides:
initializein classKeyPairGeneratorSpi- Parameters:
params- the parameters to use.random- the source of randomness.- Throws:
InvalidAlgorithmParameterException- if the specified parameters are not supported.
-