Class DHGroup


  • public class DHGroup
    extends java.lang.Object
    Carrier class for Diffie-Hellman group parameters.
    • Constructor Summary

      Constructors 
      Constructor Description
      DHGroup​(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, int l)
      Base constructor with the prime factor of (p - 1).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.math.BigInteger getG()  
      int getL()  
      java.math.BigInteger getP()  
      java.math.BigInteger getQ()  
      • Methods inherited from class java.lang.Object

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

      • DHGroup

        public DHGroup​(java.math.BigInteger p,
                       java.math.BigInteger q,
                       java.math.BigInteger g,
                       int l)
        Base constructor with the prime factor of (p - 1).
        Parameters:
        p - the prime modulus.
        q - specifies the prime factor of (p - 1).
        g - the base generator.
    • Method Detail

      • getG

        public java.math.BigInteger getG()
      • getL

        public int getL()
      • getP

        public java.math.BigInteger getP()
      • getQ

        public java.math.BigInteger getQ()