public class RSAKeyGenerator extends Object implements KeyGenerator
KeyGenerator that creates RSA key pairs.| Constructor and Description |
|---|
RSAKeyGenerator()
Create a
KeyGenerator that will create a 2048-bit RSA key pair. |
RSAKeyGenerator(int keySize)
Create a
KeyGenerator that will create an RSA key pair of the specified keySize. |
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
generate()
Generates a new public/private key pair.
|
String |
toString() |
public RSAKeyGenerator()
KeyGenerator that will create a 2048-bit RSA key pair.public RSAKeyGenerator(int keySize)
KeyGenerator that will create an RSA key pair of the specified keySize.public KeyPair generate()
KeyGeneratorgenerate in interface KeyGeneratorCopyright © 2016. All Rights Reserved.