org.mozilla.jss.crypto

Class RSAParameterSpec

public class RSAParameterSpec extends Object implements AlgorithmParameterSpec

This class specifies the parameters used for generating an RSA key pair.
Constructor Summary
RSAParameterSpec(int keySize, BigInteger publicExponent)
Creates a new RSAParameterSpec with the specified parameter values.
Method Summary
intgetKeySize()
Returns the size of the modulus in bits.
BigIntegergetPublicExponent()
Returns the public exponent e.

Constructor Detail

RSAParameterSpec

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

Parameters: 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

getKeySize

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

getPublicExponent

public BigInteger getPublicExponent()
Returns the public exponent e.