public class SPEKEKeyPairGenerator
extends java.security.KeyPairGenerator
SPEKEParameterSpec,
SPEKEKeyAgreement,
SPEKEPrivateKey,
SPEKEPublicKey| Constructor and Description |
|---|
SPEKEKeyPairGenerator()
The constructor; creates a new instance of the SPEKE key pair generation
algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyPair |
generateKeyPair()
Generates a key pair.
|
void |
initialize(java.security.spec.AlgorithmParameterSpec params)
Initializes the key pair generator using the specified parameter set.
|
public SPEKEKeyPairGenerator()
Applications should not use this constructor, instead the key pair
generation algorithm should be requested from the appropriate JCA/JCE
cryptographic service provider as follows:
KeyPairGenerator.getInstance("SPEKE", "Entrust").
public void initialize(java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidParameterException
initialize in class java.security.KeyPairGeneratorparams - [FIPS 140-2 data input] the parameter set used to generate the
keys.java.security.InvalidAlgorithmParameterException - [FIPS 140-2 status output] if the given parameters are
inappropriate for this key pair generator.Fips140ErrorStateException - [FIPS 140-2 status output] thrown if the Toolkit is not
allowed to perform cryptographic operationsjava.security.InvalidParameterExceptionpublic java.security.KeyPair generateKeyPair()
throws java.security.InvalidParameterException
Unless an initialization method is called using a KeyPairGenerator interface, algorithm-specific defaults will be used. This will generate a new key pair every time it is called.
generateKeyPair in class java.security.KeyPairGeneratorFips140ErrorStateException - [FIPS 140-2 status output] thrown if the Toolkit is not
allowed to perform cryptographic operationsjava.security.InvalidParameterException