public final class KeyPairGenerator extends KeyPairGeneratorSpi
| Constructor and Description |
|---|
KeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
KeyPair | generateKeyPair() |
void | initialize(AlgorithmParameterSpec params,
SecureRandom random)Initialize the key pair generator with the specified parameters. |
void | initialize(int strength,
SecureRandom random)Initialize the key pair generator with the specified strength. |
public KeyPair generateKeyPair()
generateKeyPair in class KeyPairGeneratorSpipublic void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
initialize in class KeyPairGeneratorSpirandom - ignoredInvalidAlgorithmParameterExceptionpublic void initialize(int strength,
SecureRandom random)initialize in class KeyPairGeneratorSpistrength - must be 2048random - ignored