diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-01-30 13:14:34 +0100 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-01-31 17:16:10 +0100 |
commit | 3e512ed4c85444fcbd3d364ffa48aa3291813b73 (patch) | |
tree | bc4f3acc26dcc0614724d759474334e0e66ba522 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork | |
parent | 85a983b556baaaa45ea79a4da232a1a72d323708 (diff) | |
download | moa-id-spss-3e512ed4c85444fcbd3d364ffa48aa3291813b73.tar.gz moa-id-spss-3e512ed4c85444fcbd3d364ffa48aa3291813b73.tar.bz2 moa-id-spss-3e512ed4c85444fcbd3d364ffa48aa3291813b73.zip |
supply organization details on representative case
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork/STORKResponseProcessor.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork/STORKResponseProcessor.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork/STORKResponseProcessor.java index 664d0cf57..e81adfb52 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork/STORKResponseProcessor.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/stork/STORKResponseProcessor.java @@ -345,10 +345,20 @@ public class STORKResponseProcessor { String representative = getAttributeValue("representative", attributeList);
String represented = getAttributeValue("represented", attributeList);
String mandate = getAttributeValue("mandateContent", attributeList);
+
+ // we definitely know we have a representation case here
+ // lets try if the represented is an organization
+ try {
+ String organizationAddress = getAttributeValue("canonicalRegisteredAddress", attributeList);
+ String organizationType = getAttributeValue("translateableType", attributeList);
+
+ // if we got here, we have a natural person representing a legal person
+ response = AuthenticationServer.getInstance().getIdentityLink(eIdentifier, givenName, lastName, dateOfBirth, citizenSignature, representative, represented, mandate, organizationAddress, organizationType);
+ } catch(STORKException e1) {
- // if we get here we have a representation case
- response = AuthenticationServer.getInstance().getIdentityLink(eIdentifier, givenName, lastName, dateOfBirth, citizenSignature, representative, represented, mandate);
-
+ // if we get here we have natural persons representing each other
+ response = AuthenticationServer.getInstance().getIdentityLink(eIdentifier, givenName, lastName, dateOfBirth, citizenSignature, representative, represented, mandate);
+ }
} catch(STORKException e) {
// we do not have a representation case
response = AuthenticationServer.getInstance().getIdentityLink(eIdentifier, givenName, lastName, dateOfBirth, citizenSignature);
|