diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-03-12 09:59:46 +0100 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-03-12 10:03:55 +0100 |
commit | 8ad16443ec20f49e8f14b1dc79c72a8dff674a64 (patch) | |
tree | 440140b0cf688337310053d1e3c09949418ae0b5 /id/server/idserverlib/src/main/java/at/gv | |
parent | 4ade7db6124eec07aebf087721d3d478f92bdaad (diff) | |
download | moa-id-spss-8ad16443ec20f49e8f14b1dc79c72a8dff674a64.tar.gz moa-id-spss-8ad16443ec20f49e8f14b1dc79c72a8dff674a64.tar.bz2 moa-id-spss-8ad16443ec20f49e8f14b1dc79c72a8dff674a64.zip |
evaluate consent page result
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/ConsentEvaluator.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/ConsentEvaluator.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/ConsentEvaluator.java index 5b5c00b2a..79404d4f0 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/ConsentEvaluator.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/ConsentEvaluator.java @@ -50,7 +50,14 @@ public class ConsentEvaluator implements IAction { throw new MOAIDException("stork.17", null); } - // TODO evaluate response + // evaluate response + for(PersonalAttribute current : container.getResponse().getPersonalAttributeList()) { + if(null == httpReq.getParameter(current.getName())) { + current.setStatus("notAvailable"); + current.setValue(new ArrayList<String>()); + current.setComplexValue(new HashMap<String, String>()); + } + } // build and send response generateSTORKResponse(httpResp, container); |