Class RSAKeyPairGenerator
- java.lang.Object
-
- org.gudy.bouncycastle.crypto.generators.RSAKeyPairGenerator
-
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public class RSAKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
an RSA key pair generator.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.math.BigInteger
ONE
private RSAKeyGenerationParameters
param
-
Constructor Summary
Constructors Constructor Description RSAKeyPairGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricCipherKeyPair
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.void
init(KeyGenerationParameters param)
intialise the key pair generator.
-
-
-
Field Detail
-
ONE
private static java.math.BigInteger ONE
-
param
private RSAKeyGenerationParameters param
-
-
Method Detail
-
init
public void init(KeyGenerationParameters param)
Description copied from interface:AsymmetricCipherKeyPairGenerator
intialise the key pair generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
-
generateKeyPair
public AsymmetricCipherKeyPair generateKeyPair()
Description copied from interface:AsymmetricCipherKeyPairGenerator
return an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-
-