Class JeroMQCurveSecurity
java.lang.Object
dev.getelements.elements.rt.remote.jeromq.JeroMQCurveSecurity
- All Implemented Interfaces:
JeroMQSecurity
Implements JeroMQ CURVE Encryption using one of three possible combinations.
-
Field Summary
FieldsFields inherited from interface dev.getelements.elements.rt.remote.jeromq.JeroMQSecurity
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newJeroMQSecurityby generating the key pair on the fly.JeroMQCurveSecurity(PemChain server) Creates a newJeroMQSecuritywith the supplied server key chain. -
Method Summary
Modifier and TypeMethodDescriptionorg.zeromq.ZMQ.SocketConfigures the socket for use as a client socket.org.zeromq.ZMQ.SocketConfigures the socket for use as a server socket.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.remote.jeromq.JeroMQSecurity
client, server
-
Field Details
-
SOURCE_PEM
- See Also:
-
SOURCE_GEN
- See Also:
-
-
Constructor Details
-
JeroMQCurveSecurity
public JeroMQCurveSecurity()Creates a newJeroMQSecurityby 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
Creates a newJeroMQSecuritywith the supplied server key chain.- Parameters:
server-
-
-
Method Details
-
server
Description copied from interface:JeroMQSecurityConfigures the socket for use as a server socket.- Specified by:
serverin interfaceJeroMQSecurity- Parameters:
socketSupplier- theSupplierfor theZMQ.Socket- Returns:
- the socket
-
client
Description copied from interface:JeroMQSecurityConfigures the socket for use as a client socket.- Specified by:
clientin interfaceJeroMQSecurity- Parameters:
socketSupplier- theSupplierfor theZMQ.Socket- Returns:
- the socket
-
toString
-