Use a combination of the incoming IP and a time/date stamp to keep track of sessions.
To build a Keystore and a certificate to use with SSL use the keytool that comes with the JSDK:
keytool -genkey -keystore SSLStore -alias SSLCertificate
To run your program and have it use the keystore you created:
java -Djavax.net.ssl.keyStore=SSLStore
-Djavax.net.ssl.keyStorePassword=password myServer
where: password is the password you used to create the keystore
Last updated: 03/29/2009 - RVS