Re: SSL for JDBC - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: SSL for JDBC
Date
Msg-id 20030219220408.GA11861@opencloud.co.nz
Whole thread Raw
In response to Re: SSL for JDBC  (Barry Lind <blind@xythos.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: exception in decodeUTF8
Next
From: Kris Jurka
Date:
Subject: Re: getColumns() is not table name case insensitive