Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

RSAKeyGenParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ java.security.spec.RSAKeyGenParameterSpec

Class Overview

The parameter specification for generating an RSA key pair.

Summary

Fields
public static final BigInteger F0 The value of the public exponent F0 = 3.
public static final BigInteger F4 The value of the public exponent F4 = 65537.
Public Constructors
RSAKeyGenParameterSpec (int keysize, BigInteger publicExponent)
Creates a new RSAKeyGenParameterSpec with the specified key size and public exponent.
Public Methods
int getKeysize ()
Returns the size of the modulus (number of bits).
BigInteger getPublicExponent ()
Returns the value of the public exponent.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final BigInteger F0

Added in API level 1

The value of the public exponent F0 = 3.

public static final BigInteger F4

Added in API level 1

The value of the public exponent F4 = 65537.

Public Constructors

public RSAKeyGenParameterSpec (int keysize, BigInteger publicExponent)

Added in API level 1

Creates a new RSAKeyGenParameterSpec with the specified key size and public exponent.

Parameters
keysize the size of the modulus (number of bits).
publicExponent the value of the public exponent.

Public Methods

public int getKeysize ()

Added in API level 1

Returns the size of the modulus (number of bits).

Returns
  • the size of the modulus (number of bits).

public BigInteger getPublicExponent ()

Added in API level 1

Returns the value of the public exponent.

Returns
  • the value of the public exponent.