FileDocCategorySizeDatePackage
RSAKeyGenParameterSpec.javaAPI DocJava SE 5 API1661Fri Aug 26 14:57:18 BST 2005java.security.spec

RSAKeyGenParameterSpec

public class RSAKeyGenParameterSpec extends Object implements AlgorithmParameterSpec
This class specifies the set of parameters used to generate an RSA key pair.
author
Jan Luehe
version
1.8 12/19/03
see
java.security.KeyPairGenerator#initialize(java.security.spec.AlgorithmParameterSpec)
since
1.3

Fields Summary
private int
keysize
private BigInteger
publicExponent
public static final BigInteger
F0
The public-exponent value F0 = 3.
public static final BigInteger
F4
The public exponent-value F4 = 65537.
Constructors Summary
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
Constructs a new RSAParameterSpec object from the given keysize and public-exponent value.

param
keysize the modulus size (specified in number of bits)
param
publicExponent the public exponent


                                    
         
	this.keysize = keysize;
	this.publicExponent = publicExponent;
    
Methods Summary
public intgetKeysize()
Returns the keysize.

return
the keysize.

	return keysize;
    
public java.math.BigIntegergetPublicExponent()
Returns the public-exponent value.

return
the public-exponent value.

	return publicExponent;