diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-09-11 14:00:04 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-09-11 14:00:04 +0200 |
commit | ce81f8b4f430862a3dab7c9ae3168051972d7cea (patch) | |
tree | 497222a76734b7bd6e283dda57fa293a84d58f6c /eidas_modules/authmodule-eIDAS-v2/src/main/java | |
parent | ea372a857b53b67cb6f7be7f5a1285066aadc9da (diff) | |
download | National_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.java | 5 |
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))); |