From 626134634da261381b5c78490130596fc8b5d0fe Mon Sep 17 00:00:00 2001 From: rudolf Date: Mon, 26 Apr 2004 13:36:23 +0000 Subject: =?UTF-8?q?=C3=84nderung=20desVariablennamens=20disableHostnameVer?= =?UTF-8?q?ification=20in=20cbDisableHostnameVerification=20(RSCH)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@118 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'id.server/src/at/gv/egovernment/moa/id/proxy') diff --git a/id.server/src/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java b/id.server/src/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java index bdadcbb81..7807955c2 100644 --- a/id.server/src/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java +++ b/id.server/src/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java @@ -26,19 +26,19 @@ import com.sun.net.ssl.HttpsURLConnection; public class DefaultConnectionBuilder implements ConnectionBuilder { /** a boolean to disable the HostnameVerification (default = false)*/ - private static boolean disableHostnameVerification = false; + private static boolean cbDisableHostnameVerification = false; /** * Constructor for DefaultConnectionBuilder. * @throws ConfigurationException on any config error */ public DefaultConnectionBuilder() throws ConfigurationException { - disableHostnameVerification = BoolUtils.valueOf( + cbDisableHostnameVerification = BoolUtils.valueOf( ProxyConfigurationProvider.getInstance().getGenericConfigurationParameter( "ProxyComponent.DisableHostnameVerification")); //TODO MOA-ID BRZ undocumented feature - if (disableHostnameVerification) - Logger.warn("ProxyComponent.DisableHostnameVerification: " + disableHostnameVerification); + if (cbDisableHostnameVerification) + Logger.warn("ProxyComponent.DisableHostnameVerification: " + cbDisableHostnameVerification); } /** @@ -77,7 +77,7 @@ public class DefaultConnectionBuilder implements ConnectionBuilder { if (conn instanceof HttpsURLConnection && sslSocketFactory != null) { HttpsURLConnection httpsConn = (HttpsURLConnection) conn; httpsConn.setSSLSocketFactory(sslSocketFactory); - if (disableHostnameVerification) + if (cbDisableHostnameVerification) httpsConn.setHostnameVerifier(new HostnameNonVerifier()); } return conn; -- cgit v1.2.3