Re: A solution to the SSL customizing problem - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: A solution to the SSL customizing problem
Date
Msg-id 416F4565.3040207@opencloud.com
Whole thread Raw
In response to Re: A solution to the SSL customizing problem  (Ulrich Meis <kenobi@halifax.rwth-aachen.de>)
Responses Re: A solution to the SSL customizing problem
List pgsql-jdbc
Ulrich Meis wrote:
> On Thursday 14 October 2004 02:43, Oliver Jowett wrote:
>
>>...
>>Otherwise it looks fine. I wouldn't worry about the DataSource piece for
>>the moment.. if you have the ability to pass args to the constructed
>>class via a URL or properties file it is less of an issue.
>
>
> How does that look like?
> Since I found the same code in v2 and v3, I copied the new method as well.

getSSLSocketFactory() doesn't need to be duplicated. Just pass the
connection properties to makeSSL and construct the factory from there.

Use of SSL-specific code needs to be conditionally compiled or the
driver will not build if JSSE is not present. This is easy to do if you
move getSSLSocketFactory() into Driver.java.in.

This doesn't look right, what is '&urlServer&'?

> +         Object[] args = { info.getProperty("&urlServer&"), info.getProperty("sslfactoryargs") };

Otherwise, seems ok.

-O

pgsql-jdbc by date:

Previous
From: Ulrich Meis
Date:
Subject: Re: A solution to the SSL customizing problem
Next
From: Ulrich Meis
Date:
Subject: Re: A solution to the SSL customizing problem