You are currently viewing a snapshot of taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to, please file a bug.

Class RSAParameterSpec

  extended by org.mozilla.jss.crypto.RSAParameterSpec
All Implemented Interfaces:

public class RSAParameterSpec
extends java.lang.Object

This class specifies the parameters used for generating an RSA key pair.

Constructor Summary
RSAParameterSpec(int keySize, java.math.BigInteger publicExponent)
          Creates a new RSAParameterSpec with the specified parameter values.
Method Summary
 int getKeySize()
          Returns the size of the modulus in bits.
 java.math.BigInteger getPublicExponent()
          Returns the public exponent e.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public RSAParameterSpec(int keySize,
                        java.math.BigInteger publicExponent)
Creates a new RSAParameterSpec with the specified parameter values.

keySize - The size of the modulus in bits.
publicExponent - The public exponent e. Common values are 3, 17, and 65537. 65537 is recommended.
Method Detail


public int getKeySize()
Returns the size of the modulus in bits.


public java.math.BigInteger getPublicExponent()
Returns the public exponent e.