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

Since: API Level 1

The value of the public exponent F0 = 3.

public static final BigInteger F4

Since: API Level 1

The value of the public exponent F4 = 65537.

Public Constructors

public RSAKeyGenParameterSpec (int keysize, BigInteger publicExponent)

Since: 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 ()

Since: API Level 1

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

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

public BigInteger getPublicExponent ()

Since: API Level 1

Returns the value of the public exponent.

Returns
  • the value of the public exponent.