aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/main
diff options
context:
space:
mode:
authorThomas <>2022-10-17 14:44:34 +0200
committerThomas <>2022-10-17 14:44:34 +0200
commit7e7291581ca59bb8f5c8fbf18dba37e0d262fa7a (patch)
treeada18f64245024ea987bff3bd3498862ca221a58 /modules/authmodule-eIDAS-v2/src/main
parentadfcf67d75156dd80aec0755b87cd65cf8d82dd7 (diff)
downloadNational_eIDAS_Gateway-7e7291581ca59bb8f5c8fbf18dba37e0d262fa7a.tar.gz
National_eIDAS_Gateway-7e7291581ca59bb8f5c8fbf18dba37e0d262fa7a.tar.bz2
National_eIDAS_Gateway-7e7291581ca59bb8f5c8fbf18dba37e0d262fa7a.zip
feat(zmr): requesting latest version for ZMR update by using bPK only
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/main')
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java2
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/zmr/ZmrSoapClient.java10
2 files changed, 9 insertions, 3 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java
index 3c41bf0a..faf38b64 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java
@@ -152,6 +152,8 @@ public class Constants {
+ ".req.organisation.behoerdennr";
public static final String CONIG_PROPS_EIDAS_ZMRCLIENT_REQ_UPDATE_REASON_CODE = CONIG_PROPS_EIDAS_ZMRCLIENT
+ ".req.update.reason.code";
+ public static final String CONIG_PROPS_EIDAS_ZMRCLIENT_UPDATE_WITH_BPK_ONLY = CONIG_PROPS_EIDAS_ZMRCLIENT
+ + ".req.update.with.bpk.only";
public static final String CONIG_PROPS_EIDAS_ZMRCLIENT_REQ_UPDATE_REASON_TEXT = CONIG_PROPS_EIDAS_ZMRCLIENT
+ ".req.update.reason.text";
public static final String CONIG_PROPS_EIDAS_ZMRCLIENT_SSL_KEYSTORE_PATH = CONIG_PROPS_EIDAS_ZMRCLIENT
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/zmr/ZmrSoapClient.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/zmr/ZmrSoapClient.java
index 444bd4e7..b6e0cbb7 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/zmr/ZmrSoapClient.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/zmr/ZmrSoapClient.java
@@ -733,9 +733,13 @@ public class ZmrSoapClient extends AbstractSoapClient implements IZmrClient {
natPersonInfos.getIdentification().add(bpkInfo);
// set MDS
- nameInfo.setVorname(registerResult.getGivenName());
- nameInfo.setFamilienname(registerResult.getFamilyName());
- natPersonInfos.setGeburtsdatum(registerResult.getDateOfBirth());
+ if (!basicConfig.getBasicConfigurationBoolean(
+ Constants.CONIG_PROPS_EIDAS_ZMRCLIENT_UPDATE_WITH_BPK_ONLY, false)) {
+ nameInfo.setVorname(registerResult.getGivenName());
+ nameInfo.setFamilienname(registerResult.getFamilyName());
+ natPersonInfos.setGeburtsdatum(registerResult.getDateOfBirth());
+
+ }
//set bPK
bpkInfo.setValue(registerResult.getBpk());