public class RSAKeyGenParameterSpec extends Object implements 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 publicExponent)
Constructs a new
RSAKeyGenParameterSpec object from the
given keysize, public-exponent value, and null key parameters. |
RSAKeyGenParameterSpec(int keysize,
BigInteger publicExponent,
AlgorithmParameterSpec keyParams)
Constructs a new
RSAKeyGenParameterSpec object from the
given keysize, public-exponent value, and key parameters. |
Modifier and Type | Method and Description |
---|---|
AlgorithmParameterSpec |
getKeyParams()
Returns the parameters to be associated with key.
|
int |
getKeysize()
Returns the keysize.
|
BigInteger |
getPublicExponent()
Returns the public-exponent value.
|
public static final BigInteger F0
public static final BigInteger F4
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
RSAKeyGenParameterSpec
object from the
given keysize, public-exponent value, and null key parameters.keysize
- the modulus size (specified in number of bits)publicExponent
- the public exponentpublic RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams)
RSAKeyGenParameterSpec
object from the
given keysize, public-exponent value, and key parameters.keysize
- the modulus size (specified in number of bits)publicExponent
- the public exponentkeyParams
- the key parameters, may be nullpublic int getKeysize()
public BigInteger getPublicExponent()
public AlgorithmParameterSpec getKeyParams()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2025 aicas GmbH. All Rights Reserved.