aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-05-07 08:10:17 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-05-07 08:10:17 +0200
commitc44e10f563cae97ce3c4a64f7ba3e8777e131a0d (patch)
treee37db9e53bd453daf61a7be6c9be21ef47f8aa9b /id/server/idserverlib
parent1bec135f96f6231eafb9cef28bbdb1a018d7d967 (diff)
downloadmoa-id-spss-c44e10f563cae97ce3c4a64f7ba3e8777e131a0d.tar.gz
moa-id-spss-c44e10f563cae97ce3c4a64f7ba3e8777e131a0d.tar.bz2
moa-id-spss-c44e10f563cae97ce3c4a64f7ba3e8777e131a0d.zip
add log message if STORKSAMLEngine could not initalized
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java7
1 files changed, 7 insertions, 0 deletions
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) {