diff options
author | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-03-12 11:47:25 +0000 |
---|---|---|
committer | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-03-12 11:47:25 +0000 |
commit | b73ce7d7786f999fe17da9431328dc9d673d8f10 (patch) | |
tree | af5b063110077b3b7cfb0d5f11d1f0f58078a5bc /id.server/src/at/gv/egovernment | |
parent | 266df6d45f6cd2038cb56a582469e441b0ddd334 (diff) | |
download | moa-id-spss-b73ce7d7786f999fe17da9431328dc9d673d8f10.tar.gz moa-id-spss-b73ce7d7786f999fe17da9431328dc9d673d8f10.tar.bz2 moa-id-spss-b73ce7d7786f999fe17da9431328dc9d673d8f10.zip |
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
Diffstat (limited to 'id.server/src/at/gv/egovernment')
-rw-r--r-- | id.server/src/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java | 10 |
1 files changed, 7 insertions, 3 deletions
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, |