Package java.security.spec
Class RSAKeyGenParameterSpec
java.lang.Object
java.security.spec.RSAKeyGenParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
public class RSAKeyGenParameterSpec extends Object implements AlgorithmParameterSpec
The parameter specification for generating an RSA key pair.
-
Field Summary
Fields Modifier and Type Field Description static BigIntegerF0The value of the public exponentF0= 3.static BigIntegerF4The value of the public exponentF4= 65537. -
Constructor Summary
Constructors Constructor Description RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)Creates a newRSAKeyGenParameterSpecwith the specified key size and public exponent. -
Method Summary
Modifier and Type Method Description intgetKeysize()Returns the size of the modulus (number of bits).BigIntegergetPublicExponent()Returns the value of the public exponent.
-
Field Details
-
F0
The value of the public exponentF0= 3. -
F4
The value of the public exponentF4= 65537.
-
-
Constructor Details
-
RSAKeyGenParameterSpec
Creates a newRSAKeyGenParameterSpecwith the specified key size and public exponent.- Parameters:
keysize- the size of the modulus (number of bits).publicExponent- the value of the public exponent.
-
-
Method Details
-
getKeysize
public int getKeysize()Returns the size of the modulus (number of bits).- Returns:
- the size of the modulus (number of bits).
-
getPublicExponent
Returns the value of the public exponent.- Returns:
- the value of the public exponent.
-