Class RSAKeyGenParameterSpec

java.lang.Object
java.security.spec.RSAKeyGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class RSAKeyGenParameterSpec
extends Object
implements AlgorithmParameterSpec
The parameter specification for generating an RSA key pair.
  • Field Details

    • F0

      public static final BigInteger F0
      The value of the public exponent F0 = 3.
    • F4

      public static final BigInteger F4
      The value of the public exponent F4 = 65537.
  • Constructor Details

    • RSAKeyGenParameterSpec

      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.
  • Method Details

    • getKeysize

      public int getKeysize()
      Returns the size of the modulus (number of bits).
      Returns:
      the size of the modulus (number of bits).
    • getPublicExponent

      public BigInteger getPublicExponent()
      Returns the value of the public exponent.
      Returns:
      the value of the public exponent.