public class OpenSSLRSAKeyPairGenerator extends KeyPairGeneratorSpi
| Constructor and Description |
|---|
OpenSSLRSAKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
generateKeyPair()
Computes and returns a new unique
KeyPair each time this method
is called. |
void |
initialize(AlgorithmParameterSpec params,
SecureRandom random)
Initializes this
KeyPairGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom. |
void |
initialize(int keysize,
SecureRandom random)
Initializes this
KeyPairGeneratorSpi with the given key size and
the given SecureRandom. |
public KeyPair generateKeyPair()
KeyPairGeneratorSpiKeyPair each time this method
is called.generateKeyPair in class KeyPairGeneratorSpiKeyPair each time this method is called.public void initialize(int keysize,
SecureRandom random)
KeyPairGeneratorSpiKeyPairGeneratorSpi with the given key size and
the given SecureRandom. The default parameter set will be used.initialize in class KeyPairGeneratorSpikeysize - the key size (number of bits).random - the source of randomness.public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
KeyPairGeneratorSpiKeyPairGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom.initialize in class KeyPairGeneratorSpiparams - the parameters to use.random - the source of randomness.InvalidAlgorithmParameterException - if the specified parameters are not supported.