java.security.spec
Class RSAKeyGenParameterSpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.RSAKeyGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

public class RSAKeyGenParameterSpec
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

This class specifies the set of parameters used to generate an RSA key pair.

Since:
1.3
See Also:
KeyPairGenerator.initialize(java.security.spec.AlgorithmParameterSpec) sample code for java.security.KeyPairGenerator.initialize(java.security.spec.AlgorithmParameterSpec) definition code for java.security.KeyPairGenerator.initialize(java.security.spec.AlgorithmParameterSpec)

Field Summary
static BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger F0 sample code for java.security.spec.RSAKeyGenParameterSpec.F0 definition code for java.security.spec.RSAKeyGenParameterSpec.F0
          The public-exponent value F0 = 3.
static BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger F4 sample code for java.security.spec.RSAKeyGenParameterSpec.F4 definition code for java.security.spec.RSAKeyGenParameterSpec.F4
          The public exponent-value F4 = 65537.
 
Constructor Summary
RSAKeyGenParameterSpec sample code for java.security.spec.RSAKeyGenParameterSpec.RSAKeyGenParameterSpec(int, java.math.BigInteger) definition code for java.security.spec.RSAKeyGenParameterSpec.RSAKeyGenParameterSpec(int, java.math.BigInteger) (int keysize, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  publicExponent)
          Constructs a new RSAParameterSpec object from the given keysize and public-exponent value.
 
Method Summary
 int getKeysize sample code for java.security.spec.RSAKeyGenParameterSpec.getKeysize() definition code for java.security.spec.RSAKeyGenParameterSpec.getKeysize() ()
          Returns the keysize.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getPublicExponent sample code for java.security.spec.RSAKeyGenParameterSpec.getPublicExponent() definition code for java.security.spec.RSAKeyGenParameterSpec.getPublicExponent() ()
          Returns the public-exponent value.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

F0 sample code for java.security.spec.RSAKeyGenParameterSpec.F0

public static final BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  F0
The public-exponent value F0 = 3.


F4 sample code for java.security.spec.RSAKeyGenParameterSpec.F4

public static final BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  F4
The public exponent-value F4 = 65537.

Constructor Detail

RSAKeyGenParameterSpec sample code for java.security.spec.RSAKeyGenParameterSpec(int, java.math.BigInteger) definition code for java.security.spec.RSAKeyGenParameterSpec(int, java.math.BigInteger)

public RSAKeyGenParameterSpec(int keysize,
                              BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  publicExponent)
Constructs a new RSAParameterSpec object from the given keysize and public-exponent value.

Parameters:
keysize - the modulus size (specified in number of bits)
publicExponent - the public exponent
Method Detail

getKeysize sample code for java.security.spec.RSAKeyGenParameterSpec.getKeysize() definition code for java.security.spec.RSAKeyGenParameterSpec.getKeysize()

public int getKeysize()
Returns the keysize.

Returns:
the keysize.

getPublicExponent sample code for java.security.spec.RSAKeyGenParameterSpec.getPublicExponent() definition code for java.security.spec.RSAKeyGenParameterSpec.getPublicExponent()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getPublicExponent()
Returns the public-exponent value.

Returns:
the public-exponent value.