org.mozilla.jss.crypto
Class RSAParameterSpec
java.lang.Object
org.mozilla.jss.crypto.RSAParameterSpec
- AlgorithmParameterSpec
public class RSAParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec
This class specifies the parameters used for generating an RSA key pair.
RSAParameterSpec(int keySize, BigInteger publicExponent) - Creates a new RSAParameterSpec with the specified parameter values.
|
RSAParameterSpec
public RSAParameterSpec(int keySize,
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.
getKeySize
public int getKeySize()
Returns the size of the modulus in bits.
getPublicExponent
public BigInteger getPublicExponent()
Returns the public exponent e.