java.security.spec.AlgorithmParameterSpec
public class RSAParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
Constructor | Description |
---|---|
RSAParameterSpec(int keySize,
java.math.BigInteger publicExponent) |
Creates a new RSAParameterSpec with the specified parameter values.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getKeySize() |
Returns the size of the modulus in bits.
|
java.math.BigInteger |
getPublicExponent() |
Returns the public exponent e.
|
public RSAParameterSpec(int keySize, java.math.BigInteger publicExponent)
keySize
- The size of the modulus in bits.publicExponent
- The public exponent e. Common values
are 3, 17, and 65537. 65537 is recommended.