FileDocCategorySizeDatePackage
RSAKeyGenParameterSpec.javaAPI DocAndroid 1.5 API2452Wed May 06 22:41:06 BST 2009java.security.spec

RSAKeyGenParameterSpec

public class RSAKeyGenParameterSpec extends Object implements AlgorithmParameterSpec
The parameter specification for generating an RSA key pair.
since
Android 1.0

Fields Summary
public static final BigInteger
F0
The value of the public exponent {@code F0} = 3.
public static final BigInteger
F4
The value of the public exponent {@code F4} = 65537.
private final int
keysize
private final BigInteger
publicExponent
Constructors Summary
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
Creates a new {@code RSAKeyGenParameterSpec} with the specified key size and public exponent.

param
keysize the size of the modulus (number of bits).
param
publicExponent the value of the public exponent.
since
Android 1.0


                                                                  
         
        this.keysize = keysize;
        this.publicExponent = publicExponent;
    
Methods Summary
public intgetKeysize()
Returns the size of the modulus (number of bits).

return
the size of the modulus (number of bits).
since
Android 1.0

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

return
the value of the public exponent.
since
Android 1.0

        return publicExponent;