java.security.spec

Class RSAKeyGenParameterSpec

public class RSAKeyGenParameterSpec extends Object implements AlgorithmParameterSpec

This class generates a set of RSA Key parameters used in the generation of RSA keys.

Since: JDK 1.3

Field Summary
static BigIntegerF0
Public Exponent F0 = 3
static BigIntegerF4
Public Exponent F4 = 3
Constructor Summary
RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
Create a new RSAKeyGenParameterSpec to store the RSA key's keysize and public exponent
Method Summary
intgetKeysize()
Return the size of the key.
BigIntegergetPublicExponent()
Return the public exponent.

Field Detail

F0

public static final BigInteger F0
Public Exponent F0 = 3

F4

public static final BigInteger F4
Public Exponent F4 = 3

Constructor Detail

RSAKeyGenParameterSpec

public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
Create a new RSAKeyGenParameterSpec to store the RSA key's keysize and public exponent

Parameters: keysize Modulus size of key in bits publicExponent - the exponent

Method Detail

getKeysize

public int getKeysize()
Return the size of the key.

Returns: the size of the key.

getPublicExponent

public BigInteger getPublicExponent()
Return the public exponent.

Returns: the public exponent.