diff options
author | Thomas <> | 2021-07-26 10:39:21 +0200 |
---|---|---|
committer | Thomas <> | 2021-07-26 10:39:21 +0200 |
commit | 06b2307b2b572617ad85c5f5243c7295cbf92c41 (patch) | |
tree | eb869b6ddc19b9b885481b2dfcedc7f9e4f7cf99 | |
parent | 802816a345059aa04c779cde246fd6cb2a2967fe (diff) | |
download | National_eIDAS_Gateway-06b2307b2b572617ad85c5f5243c7295cbf92c41.tar.gz National_eIDAS_Gateway-06b2307b2b572617ad85c5f5243c7295cbf92c41.tar.bz2 National_eIDAS_Gateway-06b2307b2b572617ad85c5f5243c7295cbf92c41.zip |
add country-specific search parameters for DE
-rw-r--r-- | eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/DeSpecificDetailSearchProcessor.java | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/DeSpecificDetailSearchProcessor.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/DeSpecificDetailSearchProcessor.java index b7fb25ea..e05fe86b 100644 --- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/DeSpecificDetailSearchProcessor.java +++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/DeSpecificDetailSearchProcessor.java @@ -60,12 +60,23 @@ public class DeSpecificDetailSearchProcessor implements CountrySpecificDetailSea searchNatPersonName.setVorname(eidData.getGivenName()); searchNatPerson.setGeburtsdatum(eidData.getDateOfBirth()); + //add addtional eIDAS attributes from DE + req.getEidasSuchdaten().add(buildEidasSuchData( + Constants.eIDAS_ATTRURN_PLACEOFBIRTH, eidData.getPlaceOfBirth())); + req.getEidasSuchdaten().add(buildEidasSuchData( + Constants.eIDAS_ATTRURN_BIRTHNAME, eidData.getBirthName())); + + return req; - //TODO: how we can search for more than one eIDAS attribute as a Set - EidasSuchdatenType eidasInfos = new EidasSuchdatenType(); - req.getEidasSuchdaten().add(eidasInfos); + } + private EidasSuchdatenType buildEidasSuchData(String attrName, String attrValue) { + EidasSuchdatenType eidasInfos = new EidasSuchdatenType(); + eidasInfos.setStaatscode2(Constants.COUNTRY_CODE_DE); + eidasInfos.setEidasArt(attrName); + eidasInfos.setEidasWert(attrValue); + return eidasInfos; - return req; } + } |