aboutsummaryrefslogtreecommitdiff
path: root/spss
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2015-04-09 12:44:04 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-04-09 12:44:04 +0200
commit2a4c182dd0209a6b9321d7f38a977eb1046de165 (patch)
tree8abc407e1ad700692af0ccd86669dbc6da75e8d7 /spss
parent8400b9d9734f45d53ac722e85e04c599fdccfe0d (diff)
parente98bdf2b39ecb9100e64c8077752ed7c4ed883b3 (diff)
downloadmoa-id-spss-2a4c182dd0209a6b9321d7f38a977eb1046de165.tar.gz
moa-id-spss-2a4c182dd0209a6b9321d7f38a977eb1046de165.tar.bz2
moa-id-spss-2a4c182dd0209a6b9321d7f38a977eb1046de165.zip
Merge branch '2.2.x-Snapshot' of gitlab.iaik.tugraz.at:afitzek/moa-idspss into 2.2.x-Snapshot
Diffstat (limited to 'spss')
-rw-r--r--spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureCreationProfileFactory.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureCreationProfileFactory.java b/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureCreationProfileFactory.java
index d1281c1f1..6a85415f8 100644
--- a/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureCreationProfileFactory.java
+++ b/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureCreationProfileFactory.java
@@ -145,7 +145,12 @@ public class XMLSignatureCreationProfileFactory {
// get the key group id
String keyGroupID = request.getKeyIdentifier();
// get digest method on key group level (if configured)
- String configDigestMethodKG = config.getKeyGroup(keyGroupID).getDigestMethodAlgorithm();
+ KeyGroup keygroup = config.getKeyGroup(keyGroupID);
+ if(null == keygroup) {
+ Logger.error("Could not find key group '" + keyGroupID + "'");
+ throw new MOAApplicationException("2231", null);
+ }
+ String configDigestMethodKG = keygroup.getDigestMethodAlgorithm();
// get default digest method (if configured)
String configDigestMethod = config.getDigestMethodAlgorithmName();