public class RSAKeyGenParameterSpec extends Objectimplements AlgorithmParameterSpec
KeyPairGenerator.initialize(java.security.spec.AlgorithmParameterSpec)
| Modifier and Type | Field and Description |
|---|---|
static BigInteger |
F0
The public-exponent value F0 = 3.
|
static BigInteger |
F4
The public exponent-value F4 = 65537.
|
| Constructor and Description |
|---|
RSAKeyGenParameterSpec(int keysize, BigInteger
Constructs a new
RSAParameterSpec object from the given keysize and public-exponent value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKeysize()
Returns the keysize.
|
BigInteger |
getPublicExponent()
Returns the public-exponent value.
|
public static final BigIntegerF0
public static final BigIntegerF4
public RSAKeyGenParameterSpec(int keysize,
BigInteger publicExponent)
RSAParameterSpec object from the given keysize and public-exponent value.
keysize - the modulus size (specified in number of bits)
publicExponent - the public exponent
public int getKeysize()
public BigIntegergetPublicExponent()