Class DHGClient

    • Constructor Detail

    • Method Detail

      • getName

        public final String getName()
      • init

        public void init​(byte[] v_s,
                         byte[] v_c,
                         byte[] i_s,
                         byte[] i_c)
                  throws Exception
        Description copied from interface: KeyExchange
        Initialize the key exchange algorithm.
        Specified by:
        init in interface KeyExchange
        Overrides:
        init in class AbstractDHKeyExchange
        Parameters:
        v_s - the server identification string
        v_c - the client identification string
        i_s - the server key initialization packet
        i_c - the client key initialization packet
        Throws:
        Exception - if an error occurs
      • next

        public boolean next​(int cmd,
                            Buffer buffer)
                     throws Exception
        Description copied from interface: KeyExchange
        Process the next packet
        Parameters:
        cmd - the command
        buffer - the packet contents positioned after the command
        Returns:
        a boolean indicating if the processing is complete or if more packets are to be received
        Throws:
        Exception - if an error occurs