aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2018-09-11 14:00:04 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2018-09-11 14:00:04 +0200
commitce81f8b4f430862a3dab7c9ae3168051972d7cea (patch)
tree497222a76734b7bd6e283dda57fa293a84d58f6c /eidas_modules/authmodule-eIDAS-v2/src/main/java
parentea372a857b53b67cb6f7be7f5a1285066aadc9da (diff)
downloadNational_eIDAS_Gateway-ce81f8b4f430862a3dab7c9ae3168051972d7cea.tar.gz
National_eIDAS_Gateway-ce81f8b4f430862a3dab7c9ae3168051972d7cea.tar.bz2
National_eIDAS_Gateway-ce81f8b4f430862a3dab7c9ae3168051972d7cea.zip
add missing countryCode information
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src/main/java')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/handler/AbstracteIDPostProcessor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/handler/AbstracteIDPostProcessor.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/handler/AbstracteIDPostProcessor.java
index db5dafd7..0d9002f1 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/handler/AbstracteIDPostProcessor.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/handler/AbstracteIDPostProcessor.java
@@ -23,6 +23,11 @@ public abstract class AbstracteIDPostProcessor implements INationaleIDPostProces
public ERnBeIDData postProcess(Map<String, Object> eIDASAttrMap) throws eIDPostProcessingException, eIDASAttributeException{
ERnBeIDData result = new ERnBeIDData();
+ Object eIdentifierObj = eIDASAttrMap.get(Constants.eIDAS_ATTR_PERSONALIDENTIFIER);
+ Trible<String, String, String> eIdentifier =
+ eIDASResponseUtils.parseEidasPersonalIdentifier((String)eIdentifierObj);
+ result.setCitizenCountryCode(eIdentifier.getFirst());
+
//MDS attributes
result.setPseudonym(processPseudonym(eIDASAttrMap.get(Constants.eIDAS_ATTR_PERSONALIDENTIFIER)));
result.setFamilyName(processFamilyName(eIDASAttrMap.get(Constants.eIDAS_ATTR_CURRENTFAMILYNAME)));