aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-13 20:56:37 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-13 22:06:02 +0100
commitab303539da5d60a2e12c07b30b997c010155d0b6 (patch)
tree3fbed46f3bae2e538549ec59eb1fa5e1e3fda7ac /id/server/idserverlib/src/main/java/at
parent6ac37f0acfb232d64607d685c0ad7f11fe581df0 (diff)
downloadmoa-id-spss-ab303539da5d60a2e12c07b30b997c010155d0b6.tar.gz
moa-id-spss-ab303539da5d60a2e12c07b30b997c010155d0b6.tar.bz2
moa-id-spss-ab303539da5d60a2e12c07b30b997c010155d0b6.zip
parse reports unsupported data properly now
Diffstat (limited to 'id/server/idserverlib/src/main/java/at')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/StorkAttributeRequestProvider.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/StorkAttributeRequestProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/StorkAttributeRequestProvider.java
index fbb430362..32b0bb334 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/StorkAttributeRequestProvider.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/StorkAttributeRequestProvider.java
@@ -35,7 +35,7 @@ public class StorkAttributeRequestProvider implements AttributeProvider {
* @see at.gv.egovernment.moa.id.protocols.stork2.AttributeProvider#parse(javax.servlet.http.HttpServletRequest)
*/
@Override
- public IPersonalAttributeList parse(HttpServletRequest httpReq) throws MOAIDException {
+ public IPersonalAttributeList parse(HttpServletRequest httpReq) throws MOAIDException, UnsupportedAttributeException {
Logger.debug("Beginning to extract SAMLResponse out of HTTP Request");
//extract STORK Response from HTTP Request
@@ -44,8 +44,7 @@ public class StorkAttributeRequestProvider implements AttributeProvider {
try {
decSamlToken = PEPSUtil.decodeSAMLToken(httpReq.getParameter("SAMLResponse"));
} catch(NullPointerException e) {
- Logger.error("Unable to retrieve STORK Response", e);
- throw new MOAIDException("stork.04", null);
+ throw new UnsupportedAttributeException();
}
//Get SAMLEngine instance