Class RSAParameterSpec

  • All Implemented Interfaces:
    java.security.spec.AlgorithmParameterSpec

    public class RSAParameterSpec
    extends java.security.spec.RSAKeyGenParameterSpec
    This class specifies the parameters used for generating an RSA key pair.
    • Field Summary

      • Fields inherited from class java.security.spec.RSAKeyGenParameterSpec

        F0, F4
    • Constructor Summary

      Constructors 
      Constructor Description
      RSAParameterSpec​(int keySize, java.math.BigInteger publicExponent)
      Creates a new RSAParameterSpec with the specified parameter values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getKeySize()
      Returns the size of the modulus in bits.
      • Methods inherited from class java.security.spec.RSAKeyGenParameterSpec

        getKeyParams, getKeysize, getPublicExponent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RSAParameterSpec

        public RSAParameterSpec​(int keySize,
                                java.math.BigInteger publicExponent)
        Creates a new RSAParameterSpec with the specified parameter values.
        Parameters:
        keySize - The size of the modulus in bits.
        publicExponent - The public exponent e. Common values are 3, 17, and 65537. 65537 is recommended.
    • Method Detail

      • getKeySize

        public int getKeySize()
        Returns the size of the modulus in bits.