More authentication experiments

This time there are two. Both use tomcat as that is what my group has asked me to investigate, however one is standard HTML where as the other uses WebSockets. Both are hosted on my home server so don’t expect speed 🙂 The username/password combo is again admin/admin.

Without WebSockets: http://hyperbadger.it.cx:8000/WebAuth/Auth (Offline)
With WebSockets: http://hyperbadger.it.cx:8000/WebAuth/Main.jsp (Offline)

Also the sources for both: http://users.aber.ac.uk/tis4/downloads/WebAuthSource.zip

Overall though I still think I prefer the java applet for this assignment. It took 4 hours to implement the applet including research, and then about another 3-4 to do the plain HTML, and then another 1 to figure out sockets with Tomcat. However I believe the only reason the applet took so long was because I made the code neat and did planning beforehand, but with the HTML bases examples I didn’t know what I was doing so just jumped straight in, and it actually went fairly well.

Server Client Auth

This is a server client authentication experiment/example using java sockets and sax xml parser.
The server should be run from command line with no parameters.
The client can be run without parameters and will by default connect to localhost port 4444.

The example is capable of authenticating against a server and then pinging it and also disconnecting.

In the source code, the server includes a fair few javadoc comments and the client contains none as it reuses nearly all of the communication code, it simply adds a swing interface on top. In this example the correct username/password combo is admin/admin.

Downloads: