Class KeyPairGeneratorSpi
java.lang.Object
java.security.KeyPairGeneratorSpi
java.security.KeyPairGenerator
org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi
public class KeyPairGeneratorSpi extends KeyPairGenerator
-
Constructor Summary
Constructors Constructor Description KeyPairGeneratorSpi() -
Method Summary
Modifier and Type Method Description KeyPairgenerateKeyPair()Computes and returns a new uniqueKeyPaireach time this method is called.voidinitialize(int strength, SecureRandom random)Initializes thisKeyPairGeneratorwith the given key size and the givenSecureRandom.voidinitialize(AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyPairGeneratorwith the givenAlgorithmParameterSpecand the givenSecureRandom.Methods inherited from class java.security.KeyPairGenerator
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider, initialize, initialize
-
Constructor Details
-
KeyPairGeneratorSpi
public KeyPairGeneratorSpi()
-
-
Method Details
-
initialize
Description copied from class:KeyPairGeneratorInitializes thisKeyPairGeneratorwith the given key size and the givenSecureRandom. The default parameter set will be used.- Overrides:
initializein classKeyPairGenerator- Parameters:
strength- the key sizerandom- the source of randomness
-
initialize
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterExceptionDescription copied from class:KeyPairGeneratorInitializes thisKeyPairGeneratorwith the givenAlgorithmParameterSpecand the givenSecureRandom.- Overrides:
initializein classKeyPairGenerator- Parameters:
params- the parameters to userandom- the source of randomness- Throws:
InvalidAlgorithmParameterException- if the specified parameters are not supported
-
generateKeyPair
Description copied from class:KeyPairGeneratorComputes and returns a new uniqueKeyPaireach time this method is called.This does exactly the same as
KeyPairGenerator.genKeyPair().- Overrides:
generateKeyPairin classKeyPairGenerator- Returns:
- a new unique
KeyPaireach time this method is called
-