Class DHKeyParametersGenerationParameters
- java.lang.Object
-
- org.xwiki.crypto.params.generator.symmetric.GenericKeyGenerationParameters
-
- org.xwiki.crypto.params.generator.asymmetric.DHKeyParametersGenerationParameters
-
- All Implemented Interfaces:
KeyGenerationParameters,KeyParametersGenerationParameters
public class DHKeyParametersGenerationParameters extends GenericKeyGenerationParameters implements KeyParametersGenerationParameters, KeyGenerationParameters
Parameters for DH key pair generation consistent for use in the MTI/A0 key agreement protocol.- Since:
- 5.4M1
- Version:
- $Id: 473a05b04a2d764eee9d24118e8ecb2e3ec78b1c $
-
-
Constructor Summary
Constructors Constructor Description DHKeyParametersGenerationParameters()New instance using default values.DHKeyParametersGenerationParameters(int strength)New instance specifying a given key strength.DHKeyParametersGenerationParameters(int strength, int certainty)New instance specifying a given key strength.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCertainty()-
Methods inherited from class org.xwiki.crypto.params.generator.symmetric.GenericKeyGenerationParameters
getStrength
-
-
-
-
Constructor Detail
-
DHKeyParametersGenerationParameters
public DHKeyParametersGenerationParameters()
New instance using default values.
-
DHKeyParametersGenerationParameters
public DHKeyParametersGenerationParameters(int strength)
New instance specifying a given key strength.- Parameters:
strength- the strength of the key to generate in bits.
-
DHKeyParametersGenerationParameters
public DHKeyParametersGenerationParameters(int strength, int certainty)New instance specifying a given key strength.- Parameters:
strength- the strength of the key to generate in bits.certainty- the certainty of prime number.
-
-