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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
generateKeyPair
public KeyPair 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
public void initialize(int keysize, SecureRandom random)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 InvalidAlgorithmParameterException
Description 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.
-
-