public class RSAKeyGenerator extends java.lang.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 |
|---|---|
java.security.KeyPair |
generate()
Generates a new public/private key pair.
|
java.lang.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.keySize - keySizepublic java.security.KeyPair generate()
KeyGeneratorgenerate in interface KeyGeneratorpublic java.lang.String toString()
toString in class java.lang.Object