Class RSAKeyGenerationParameters
- java.lang.Object
-
- org.xwiki.crypto.params.generator.symmetric.GenericKeyGenerationParameters
-
- org.xwiki.crypto.params.generator.asymmetric.RSAKeyGenerationParameters
-
- All Implemented Interfaces:
KeyGenerationParameters
public class RSAKeyGenerationParameters extends GenericKeyGenerationParameters implements KeyGenerationParameters
Parameters for RSA key pair generation.- Since:
- 5.4M1
- Version:
- $Id: cc7d2e2a2ec2e5738db8fc94ae15dfc8bb40e615 $
-
-
Constructor Summary
Constructors Constructor Description RSAKeyGenerationParameters()Build a new instance with all defaults.RSAKeyGenerationParameters(int strength)Build a new instance with the given strength.RSAKeyGenerationParameters(int strength, int certainty)Build a new instance with the given strength and certainty for prime evaluation.RSAKeyGenerationParameters(int strength, BigInteger publicExponent)Build a new instance with the given strength and public exponent.RSAKeyGenerationParameters(int strength, BigInteger publicExponent, int certainty)Build a new instance with all custom parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCertainty()BigIntegergetPublicExponent()-
Methods inherited from class org.xwiki.crypto.params.generator.symmetric.GenericKeyGenerationParameters
getStrength
-
-
-
-
Constructor Detail
-
RSAKeyGenerationParameters
public RSAKeyGenerationParameters()
-
RSAKeyGenerationParameters
public RSAKeyGenerationParameters(int strength)
Build a new instance with the given strength. The default public exponent is 0x10001. The default certainty for prime evaluation is 12.- Parameters:
strength- the strength in bytes.
-
RSAKeyGenerationParameters
public RSAKeyGenerationParameters(int strength, BigInteger publicExponent)Build a new instance with the given strength and public exponent. The default certainty for prime evaluation is 12.- Parameters:
strength- the key strength in bytes.publicExponent- the public exponent.
-
RSAKeyGenerationParameters
public RSAKeyGenerationParameters(int strength, int certainty)Build a new instance with the given strength and certainty for prime evaluation. The default public exponent is 0x10001.- Parameters:
strength- the key strength in bytes.certainty- certainty for prime evaluation.
-
RSAKeyGenerationParameters
public RSAKeyGenerationParameters(int strength, BigInteger publicExponent, int certainty)Build a new instance with all custom parameters.- Parameters:
strength- the key strength in bytes.publicExponent- the public exponent.certainty- certainty for prime evaluation.
-
-
Method Detail
-
getPublicExponent
public BigInteger getPublicExponent()
- Returns:
- the public exponent.
-
getCertainty
public int getCertainty()
- Returns:
- the certainty for prime evaluation.
-
-