Re: SSL for JDBC

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: SSL for JDBC
Дата
Msg-id 20030219220408.GA11861@opencloud.co.nz
обсуждение исходный текст
Ответ на Re: SSL for JDBC  (Barry Lind <blind@xythos.com>)
Список 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 по дате отправления:

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: exception in decodeUTF8
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: getColumns() is not table name case insensitive