Class DHGServer

All Implemented Interfaces:
KeyExchange, NamedResource, SessionContextHolder, SessionHolder<Session>, ServerSessionHolder

public class DHGServer extends AbstractDHServerKeyExchange
Author:
Apache MINA SSHD Project
  • Field Details

  • Constructor Details

  • Method Details

    • getName

      public final String getName()
    • newFactory

      public static KeyExchangeFactory newFactory(DHFactory factory)
    • 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