O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required