Top Description Fields Constructors Methods
java.security.spec

public Class RSAKeyGenParameterSpec

extends Object
implements AlgorithmParameterSpec
Class Inheritance
All Implemented Interfaces
java.security.spec.AlgorithmParameterSpec
Imports
java.math.BigInteger

This class specifies the set of parameters used to generate an RSA key pair.
Author
Jan Luehe
Since
1.3
See Also
java.security.KeyPairGenerator#initialize(java.security.spec.AlgorithmParameterSpec)

Field Summary

Modifier and TypeField and Description
public static final BigInteger
F0

The public-exponent value F0 = 3.

public static final BigInteger
F4

The public exponent-value F4 = 65537.

private final AlgorithmParameterSpec
private final int
private final BigInteger

Constructor Summary

AccessConstructor and Description
public
RSAKeyGenParameterSpec(int
the modulus size (specified in number of bits)
keysize
,
BigInteger
the public exponent
publicExponent
)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and null key parameters.

public
RSAKeyGenParameterSpec(int
the modulus size (specified in number of bits)
keysize
,
BigInteger
the public exponent
publicExponent
,
AlgorithmParameterSpec
the key parameters, may be null
keyParams
)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and key parameters.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmParameterSpec

Returns:

the associated parameters, may be null if not present
getKeyParams
()

Returns the parameters to be associated with key.

public int

Returns:

the keysize.
getKeysize
()

Returns the keysize.

public BigInteger

Returns:

the public-exponent value.
getPublicExponent
()

Returns the public-exponent value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

F0back to summary
public static final BigInteger F0

The public-exponent value F0 = 3.

F4back to summary
public static final BigInteger F4

The public exponent-value F4 = 65537.

keyParamsback to summary
private final AlgorithmParameterSpec keyParams
keysizeback to summary
private final int keysize
publicExponentback to summary
private final BigInteger publicExponent

Constructor Detail

RSAKeyGenParameterSpecback to summary
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and null key parameters.

Parameters
keysize:int

the modulus size (specified in number of bits)

publicExponent:BigInteger

the public exponent

RSAKeyGenParameterSpecback to summary
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and key parameters.

Parameters
keysize:int

the modulus size (specified in number of bits)

publicExponent:BigInteger

the public exponent

keyParams:AlgorithmParameterSpec

the key parameters, may be null

Since
11

Method Detail

getKeyParamsback to summary
public AlgorithmParameterSpec getKeyParams()

Returns the parameters to be associated with key.

Returns:AlgorithmParameterSpec

the associated parameters, may be null if not present

Since
11
getKeysizeback to summary
public int getKeysize()

Returns the keysize.

Returns:int

the keysize.

getPublicExponentback to summary
public BigInteger getPublicExponent()

Returns the public-exponent value.

Returns:BigInteger

the public-exponent value.