From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
---|---|
To: | Barry Lind <blind(at)xythos(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: SSL for JDBC |
Date: | 2003-02-19 22:04:08 |
Message-ID: | 20030219220408.GA11861@opencloud.co.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2003-02-19 22:10:31 | Re: getColumns() is not table name case insensitive |
Previous Message | Barry Lind | 2003-02-19 20:36:06 | Re: exception in decodeUTF8 |