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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKeysize()Returns the size of the modulus (number of bits).BigIntegergetPublicExponent()Returns the value of the public exponent.
-
-
-
Field Detail
-
F0
public static final BigInteger F0
The value of the public exponentF0= 3.
-
F4
public static final BigInteger F4
The value of the public exponentF4= 65537.
-
-
Constructor Detail
-
RSAKeyGenParameterSpec
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)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 Detail
-
getKeysize
public int getKeysize()
Returns the size of the modulus (number of bits).- Returns:
- the size of the modulus (number of bits).
-
getPublicExponent
public BigInteger getPublicExponent()
Returns the value of the public exponent.- Returns:
- the value of the public exponent.
-
-