java.security.spec
Class RSAKeyGenParameterSpec

java.lang.Object
  extended by java.security.spec.RSAKeyGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

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 BigInteger F0
          Public Exponent F0 = 3
static BigInteger F4
          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
 int getKeysize()
          Return the size of the key.
 BigInteger getPublicExponent()
          Return the public exponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.