JSSE: add basic RMI example client and server #226
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds an example RMI client and server that work over TLS, located in the
examples/provider/rmi
directory. Examples are compiled whenant examples
is run:Then, the client and server can be run from the
wolfssljni
root:examples/provider/rmi/RmiServer.java
- RMI server (implements RmiRemoteInterface)examples/provider/rmi/RmiClient.java
- RMI clientexamples/provider/rmi/RmiRemoteInterface.java
- RMI remote object interfaceexamples/provider/rmi/RmiTLSClientSocketFactory.java
- client TLS socket factory for RMIexamples/provider/rmi/RmiTLSServerSocketFactory.java
- server TLS socket factory for RMIExpected output should be:
Each example can take a number of arguments. The server is set up to create one RMI registry at a starting port of
11115
. If the-n XX
option is used on the server side, that number of RMI registry ports will be created. The client is set up to make one connection to the server, and get an array of available ports. It will then make by default one connection to each of those ports. If-n XX
is used on the client example, the client will makeXX
connections to each available RMI service port.Example client usage options:
Example server usage options: