diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2015-03-23 13:42:33 +0100 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2015-03-24 13:59:31 +0100 |
commit | 443787eddd778e5388cba643413531981edc50ed (patch) | |
tree | 77ecbcc20c094101324ef2195fa06971c5ec0c2e /spss/server/serverlib/src/main/java | |
parent | 1bb5a7e0db70fb95343436155571f2037372c352 (diff) | |
download | moa-id-spss-443787eddd778e5388cba643413531981edc50ed.tar.gz moa-id-spss-443787eddd778e5388cba643413531981edc50ed.tar.bz2 moa-id-spss-443787eddd778e5388cba643413531981edc50ed.zip |
error message when a keygroup is not found
Diffstat (limited to 'spss/server/serverlib/src/main/java')
-rw-r--r-- | spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureCreationProfileFactory.java | 7 |
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(); |