Module ibm.crypto.ibmjcehybrid
Class DiffieHellmanParameterGeneratorHybrid
- java.lang.Object
-
- java.security.AlgorithmParameterGeneratorSpi
-
- com.ibm.crypto.ibmjcehybrid.provider.DiffieHellmanParameterGeneratorHybrid
-
public final class DiffieHellmanParameterGeneratorHybrid extends java.security.AlgorithmParameterGeneratorSpi
This class is a facade for the generator of the parameter set used by the Diffie-Hellman key agreement as defined in the PKCS #3 standard.
-
-
Constructor Summary
Constructors Constructor Description DiffieHellmanParameterGeneratorHybrid()
Creates an instance of the DiffieHellmanParameterGeneratorHybrid class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.security.AlgorithmParameters
engineGenerateParameters()
Generates the algorithm parameters.protected void
engineInit(int size)
This method provides the settings for the AlgorithmParameterGenerator.protected void
engineInit(int size, java.security.SecureRandom random)
This method provides the settings for the AlgorithmParameterGenerator.protected void
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
This method provides the settings for the AlgorithmParameterGenerator.protected void
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec, java.security.SecureRandom random)
This method provides the settings for the AlgorithmParameterGenerator.
-
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException
This method provides the settings for the AlgorithmParameterGenerator.- Parameters:
paramSpec
- The settings- Throws:
java.security.spec.InvalidParameterSpecException
-
engineInit
protected void engineInit(int size)
This method provides the settings for the AlgorithmParameterGenerator.- Parameters:
size
- The strength
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec, java.security.SecureRandom random)
This method provides the settings for the AlgorithmParameterGenerator.- Specified by:
engineInit
in classjava.security.AlgorithmParameterGeneratorSpi
- Parameters:
paramSpec
- The settingsrandom
- the source of randomness.
-
engineInit
protected void engineInit(int size, java.security.SecureRandom random)
This method provides the settings for the AlgorithmParameterGenerator.- Specified by:
engineInit
in classjava.security.AlgorithmParameterGeneratorSpi
- Parameters:
size
- The strengthrandom
- the source of randomness.
-
engineGenerateParameters
protected java.security.AlgorithmParameters engineGenerateParameters()
Generates the algorithm parameters.- Specified by:
engineGenerateParameters
in classjava.security.AlgorithmParameterGeneratorSpi
- Returns:
- the new parameters
-
-