On Wed, Feb 19, 2003 at 09:40:52AM -0800, Barry Lind wrote:
> Basically, the connection is initiated with non-ssl and then converted
> to ssl later. I was just looking at the java ssl API and I don't see a
> way to do this in java. Does anyone more familiar with java ssl support
> know how you can convert a regular socket connection to ssl after you
> have created and used it?
javax.net.ssl.SSLSocketFactory.createSocket() is what you're after; it
wraps existing Sockets with a SSLSocket.
http://java.sun.com/j2se/1.4.1/docs/api/javax/net/ssl/SSLSocketFactory.html
-O