Class DHGenParameterSpec

  • All Implemented Interfaces:
    AlgorithmParameterSpec

    public class DHGenParameterSpec
    extends Object
    implements AlgorithmParameterSpec
    The algorithm parameter specification for generating Diffie-Hellman parameters used in Diffie-Hellman key agreement.
    • Constructor Detail

      • DHGenParameterSpec

        public DHGenParameterSpec​(int primeSize,
                                  int exponentSize)
        Creates a new DHGenParameterSpec instance with the specified parameters.
        Parameters:
        primeSize - the size of the prime modulus in bits.
        exponentSize - the size of the random exponent in bits.
    • Method Detail

      • getPrimeSize

        public int getPrimeSize()
        Returns the size of the prime modulus in bits.
        Returns:
        the size of the prime modulus in bits.
      • getExponentSize

        public int getExponentSize()
        Returns the size of the random exponent in bits.
        Returns:
        the size of the random exponent in bits.