aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-26 09:46:41 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-26 15:07:58 +0100
commitb7a64411283c5a5496383164ced201ef42eb3d63 (patch)
tree3146d54ce0d25ba2efa492d256b362f21e9b0f7e /id
parent2b655368aa6bfb7a0250589a23b2ac328b25c5aa (diff)
downloadmoa-id-spss-b7a64411283c5a5496383164ced201ef42eb3d63.tar.gz
moa-id-spss-b7a64411283c5a5496383164ced201ef42eb3d63.tar.bz2
moa-id-spss-b7a64411283c5a5496383164ced201ef42eb3d63.zip
sketched communication process
Diffstat (limited to 'id')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/EHvdAttributeProviderPlugin.java25
1 files changed, 23 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/EHvdAttributeProviderPlugin.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/EHvdAttributeProviderPlugin.java
index 8813ec8dc..28f5b23a3 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/EHvdAttributeProviderPlugin.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/EHvdAttributeProviderPlugin.java
@@ -7,6 +7,7 @@ import at.gv.egovernment.moa.id.auth.exception.MOAIDException;
import at.gv.egovernment.moa.id.config.auth.OAAuthParameter;
import eu.stork.peps.auth.commons.IPersonalAttributeList;
import eu.stork.peps.auth.commons.PersonalAttribute;
+import eu.stork.peps.auth.commons.PersonalAttributeList;
/**
* Fetches the attribute IsHealthcareProfessional from the BAGDAD SOAP service
@@ -24,8 +25,28 @@ public class EHvdAttributeProviderPlugin implements AttributeProvider {
public IPersonalAttributeList acquire(PersonalAttribute attributes)
throws UnsupportedAttributeException,
ExternalAttributeRequestRequiredException {
- // TODO Auto-generated method stub
- return null;
+
+ try {
+ // create SOAP connection
+
+ // assemble SOAP request
+
+ // perform SOAP call
+
+ // parse SOAP response
+
+ // assemble attribute
+ PersonalAttribute acquiredAttribute = new PersonalAttribute();
+
+ // pack and return the result
+ PersonalAttributeList result = new PersonalAttributeList();
+ result.add(acquiredAttribute);
+
+ return result;
+ } catch (Exception e) {
+ // TODO in case of an error, we might want to inform someone somehow different than by just saying nothing
+ return null;
+ }
}
/* (non-Javadoc)