From b73ce7d7786f999fe17da9431328dc9d673d8f10 Mon Sep 17 00:00:00 2001 From: "peter.danner" Date: Mon, 12 Mar 2007 11:47:25 +0000 Subject: Werfen einer Fehlermeldung falls allgemeiner Konfigurationsteil der Proxy-Konfiguration fehlt git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@815 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'id.server/src') diff --git a/id.server/src/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java b/id.server/src/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java index da5d36678..3f615b01c 100644 --- a/id.server/src/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java +++ b/id.server/src/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java @@ -65,9 +65,13 @@ public class MOAIDProxyInitializer { // Initializes the Axis secure socket factory for use in calling the MOA-Auth web service, // using configuration data ConnectionParameter connParamAuth = proxyConf.getAuthComponentConnectionParameter(); - if (connParamAuth.isHTTPSURL()) { - SSLSocketFactory ssf = SSLUtils.getSSLSocketFactory(proxyConf, connParamAuth); - AxisSecureSocketFactory.initialize(ssf); + if (connParamAuth!=null) { + if (connParamAuth.isHTTPSURL()) { + SSLSocketFactory ssf = SSLUtils.getSSLSocketFactory(proxyConf, connParamAuth); + AxisSecureSocketFactory.initialize(ssf); + } + } else { + throw new ConfigurationException("config.16", null); } // Initializes the Axis secure socket factories for use in calling the online applications, -- cgit v1.2.3