Skip to content

Most visited

Recently visited

navigation
Added in API level 1

RSAKeyGenParameterSpec

public class RSAKeyGenParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ java.security.spec.RSAKeyGenParameterSpec


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.

Inherited methods

From class java.lang.Object

Fields

F0

Added in API level 1
BigInteger F0

The value of the public exponent F0 = 3.

F4

Added in API level 1
BigInteger F4

The value of the public exponent F4 = 65537.

Public constructors

RSAKeyGenParameterSpec

Added in API level 1
RSAKeyGenParameterSpec (int keysize, 
                BigInteger publicExponent)

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

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

Public methods

getKeysize

Added in API level 1
int getKeysize ()

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

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

getPublicExponent

Added in API level 1
BigInteger getPublicExponent ()

Returns the value of the public exponent.

Returns
BigInteger the value of the public exponent.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.