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 newJeroMQSecurity
by generating the key pair on the fly.JeroMQCurveSecurity
(PemChain server) Creates a newJeroMQSecurity
with the supplied server key chain. -
Method Summary
Modifier and TypeMethodDescriptionorg.zeromq.ZMQ.Socket
Configures the socket for use as a client socket.org.zeromq.ZMQ.Socket
Configures 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, wait
Methods 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 newJeroMQSecurity
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
Creates a newJeroMQSecurity
with the supplied server key chain.- Parameters:
server
-
-
-
Method Details
-
server
Description copied from interface:JeroMQSecurity
Configures the socket for use as a server socket.- Specified by:
server
in interfaceJeroMQSecurity
- Parameters:
socketSupplier
- theSupplier
for theZMQ.Socket
- Returns:
- the socket
-
client
Description copied from interface:JeroMQSecurity
Configures the socket for use as a client socket.- Specified by:
client
in interfaceJeroMQSecurity
- Parameters:
socketSupplier
- theSupplier
for theZMQ.Socket
- Returns:
- the socket
-
toString
-