Class JeroMQCurveSecurity

java.lang.Object
dev.getelements.elements.rt.remote.jeromq.JeroMQCurveSecurity
All Implemented Interfaces:
JeroMQSecurity

public class JeroMQCurveSecurity extends Object implements JeroMQSecurity
Implements JeroMQ CURVE Encryption using one of three possible combinations.
  • Field Details

  • Constructor Details

    • JeroMQCurveSecurity

      public JeroMQCurveSecurity()
      Creates a new JeroMQSecurity by generating the key pair on the fly. This is really only useful for testing when both client and server reside in the same memory space and the instance is shared among all contexts.
    • JeroMQCurveSecurity

      public JeroMQCurveSecurity(PemChain server)
      Creates a new JeroMQSecurity with the supplied server key chain.
      Parameters:
      server -
  • Method Details

    • server

      public org.zeromq.ZMQ.Socket server(Supplier<org.zeromq.ZMQ.Socket> socketSupplier)
      Description copied from interface: JeroMQSecurity
      Configures the socket for use as a server socket.
      Specified by:
      server in interface JeroMQSecurity
      Parameters:
      socketSupplier - the Supplier for the ZMQ.Socket
      Returns:
      the socket
    • client

      public org.zeromq.ZMQ.Socket client(Supplier<org.zeromq.ZMQ.Socket> socketSupplier)
      Description copied from interface: JeroMQSecurity
      Configures the socket for use as a client socket.
      Specified by:
      client in interface JeroMQSecurity
      Parameters:
      socketSupplier - the Supplier for the ZMQ.Socket
      Returns:
      the socket
    • toString

      public String toString()
      Overrides:
      toString in class Object