public class KeyPairGenerator extends Object
| Constructor and Description |
|---|
KeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static KeyPair |
generate()
Generate key pair with default Key Type
|
static KeyPair |
generate(KeyType keyType)
Generate key pair by Type
|
static KeyPair |
generate(KeyType keyType,
Password password)
Generate key pair by Type.
|
static KeyPair |
generate(KeyType keyType,
String password)
Generate key pair by Type.
|
static KeyPair |
generate(String password)
Generate key pair with default Key Type
|
public static KeyPair generate()
KeyPairpublic static KeyPair generate(String password)
password - the password used for Private Key encryption.KeyPairpublic static KeyPair generate(KeyType keyType)
keyType - the key's type.KeyPairpublic static KeyPair generate(KeyType keyType, Password password)
keyType - the key's type.password - the password for private key protection.PrivateKeypublic static KeyPair generate(KeyType keyType, String password)
keyType - the key's type.password - the password for private key protection.PrivateKeyCopyright © 2016. All rights reserved.