Package java.security.spec
Class RSAKeyGenParameterSpec
- java.lang.Object
-
- java.security.spec.RSAKeyGenParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public class RSAKeyGenParameterSpec extends java.lang.Object implements AlgorithmParameterSpec
This class specifies the set of parameters used to generate an RSA key pair.- Since:
- 1.3
- See Also:
KeyPairGenerator.initialize(java.security.spec.AlgorithmParameterSpec)
-
-
Constructor Summary
Constructors Constructor Description RSAKeyGenParameterSpec(int keysize, int publicExponent)Constructs a newRSAKeyGenParameterSpecobject from the given keysize, public-exponent value, and null key parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKeysize()Returns the keysize.intgetPublicExponent()Returns the public-exponent value.
-
-
-
Field Detail
-
F0
public static final int F0
The public-exponent value F0 = 3.- See Also:
- Constant Field Values
-
F4
public static final int F4
The public exponent-value F4 = 65537.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RSAKeyGenParameterSpec
public RSAKeyGenParameterSpec(int keysize, int publicExponent)Constructs a newRSAKeyGenParameterSpecobject from the given keysize, public-exponent value, and null key parameters.- Parameters:
keysize- the modulus size (specified in number of bits)publicExponent- the public exponent
-
-