From c44e10f563cae97ce3c4a64f7ba3e8777e131a0d Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 7 May 2014 08:10:17 +0200 Subject: add log message if STORKSAMLEngine could not initalized --- .../java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'id/server/idserverlib/src') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java index 5c6be5cba..c99c88f5f 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java @@ -1905,6 +1905,13 @@ public class AuthenticationServer implements MOAIDAuthConstants { Logger.debug("STORK AuthnRequest succesfully assembled."); STORKSAMLEngine samlEngine = STORKSAMLEngine.getInstance("outgoing"); + + if (samlEngine == null) { + Logger.error("Could not initalize STORK SAML engine."); + throw new MOAIDException("stork.00", null); + + } + try { authnRequest = samlEngine.generateSTORKAuthnRequest(authnRequest); } catch (STORKSAMLEngineException e) { -- cgit v1.2.3