RSAKeyGenParameterSpec - JRE Emulation | JRE Emulation
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.
Inherited Methods
[Expand]
From class java.lang.Object

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

public RSAKeyGenParameterSpec (int keysize, BigInteger publicExponent)

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

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

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

public BigInteger getPublicExponent ()

Returns the value of the public exponent.

Returns
  • the value of the public exponent.