diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2021-08-30 10:37:37 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2021-08-30 10:37:37 +0200 |
commit | 1b7c56f30ff37596933a904b8ae931be18e9015b (patch) | |
tree | 3f941e22bbda355568e15799f0af9f268c11700f /id/server/idserverlib/src/main/java/at | |
parent | 52a7359e6a819e6c92bab4234dd5fb509d0ed1f5 (diff) | |
download | moa-id-spss-1b7c56f30ff37596933a904b8ae931be18e9015b.tar.gz moa-id-spss-1b7c56f30ff37596933a904b8ae931be18e9015b.tar.bz2 moa-id-spss-1b7c56f30ff37596933a904b8ae931be18e9015b.zip |
throw RuntimeException in case of an error during initialization of transaction encryption-layer
Diffstat (limited to 'id/server/idserverlib/src/main/java/at')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SessionEncrytionUtil.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SessionEncrytionUtil.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SessionEncrytionUtil.java index 498f8408b..d4a6ee786 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SessionEncrytionUtil.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SessionEncrytionUtil.java @@ -32,14 +32,15 @@ public class SessionEncrytionUtil extends AbstractEncrytionUtil { private static String key = null; public static SessionEncrytionUtil getInstance() { - if (instance == null) { + if (instance == null) { try { key = AuthConfigurationProviderFactory.getInstance().getMOASessionEncryptionKey(); - instance = new SessionEncrytionUtil(); + instance = new SessionEncrytionUtil(); } catch (Exception e) { Logger.warn("MOASession encryption can not be inizialized.", e); - + throw new RuntimeException("MOASession encryption can not be inizialized.", e); + } } return instance; |