The Client Superclass

The SSLClient class shown previously was a subclass of the Client class shown below. This class works with standard Java network connections and was pressed into usage for the SSL code to demonstrate the interoperability between standard sockets and SSL. The main program block just contains a test harness for the program and a facility for testing a java.net.ServerSocket implementation to which the program would be connecting.

What should interest us is the doProcessing method, which was called in the previous code example to perform processing against an SSL socket. As we can see here, the doProcessing method takes as an argument a java.net.Socket. Within the body of the method, an InputStream and OutputStream are created ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.