aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-11 13:15:14 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-13 22:06:01 +0100
commit366d0f285e0e1a2fa89e512d91f349488cbc82d9 (patch)
tree988e7a688947c33f3e4a95fa08d07eb59def9700 /id/server/idserverlib/src/main/java
parent95ea36e8b84de119165ce8c14fc5c1e9facd797f (diff)
downloadmoa-id-spss-366d0f285e0e1a2fa89e512d91f349488cbc82d9.tar.gz
moa-id-spss-366d0f285e0e1a2fa89e512d91f349488cbc82d9.tar.bz2
moa-id-spss-366d0f285e0e1a2fa89e512d91f349488cbc82d9.zip
find missing attributes
Diffstat (limited to 'id/server/idserverlib/src/main/java')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeCollector.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeCollector.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeCollector.java
index b93b31b49..e74cf4e8b 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeCollector.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeCollector.java
@@ -59,10 +59,15 @@ public class AttributeCollector implements IAction {
*/
public String processRequest(DataContainer container) {
// check if there are attributes we need to fetch
+ IPersonalAttributeList requestAttributeList = container.getRequest().getPersonalAttributeList();
+ IPersonalAttributeList responseAttributeList = container.getResponse().getPersonalAttributeList();
List<String> missingAttributes = new ArrayList<String>();
+ for(PersonalAttribute current : requestAttributeList)
+ if(!responseAttributeList.containsKey(current))
+ missingAttributes.add(current.getName());
+
try {
// for each attribute still missing
-
for(String currentAttribute : missingAttributes) {
// - check if we can find a suitable AttributeProvider Plugin
for(AttributeProvider currentProvider : attributeProviders) {