public class RSAKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
Modifier and Type | Field and Description |
---|---|
private static java.math.BigInteger |
ONE |
private RSAKeyGenerationParameters |
param |
Constructor and Description |
---|
RSAKeyPairGenerator() |
Modifier and Type | Method and Description |
---|---|
AsymmetricCipherKeyPair |
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
|
void |
init(KeyGenerationParameters param)
intialise the key pair generator.
|
private static final java.math.BigInteger ONE
private RSAKeyGenerationParameters param
public void init(KeyGenerationParameters param)
AsymmetricCipherKeyPairGenerator
init
in interface AsymmetricCipherKeyPairGenerator
param
- the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
AsymmetricCipherKeyPairGenerator
generateKeyPair
in interface AsymmetricCipherKeyPairGenerator