From fb1498ec1c56b9d16d12f72bae37e6a02b505848 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 18 May 2022 16:10:00 +0200 Subject: chore(register): update BM.I specific SOAP extension for transactionIds - The original version was not successful because BM.I services remove the ID from request --- .../BmiSoapTransactionHeaderInterceptor.java | 25 ++++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas') diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/BmiSoapTransactionHeaderInterceptor.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/BmiSoapTransactionHeaderInterceptor.java index 86568796..d1de827b 100644 --- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/BmiSoapTransactionHeaderInterceptor.java +++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/BmiSoapTransactionHeaderInterceptor.java @@ -25,7 +25,14 @@ import lombok.extern.slf4j.Slf4j; */ @Slf4j public class BmiSoapTransactionHeaderInterceptor implements SOAPHandler { - private static final String ELEMENT = "Client-Request-Id"; + private static final String AUTH_NS = "http://schemas.xmlsoap.org/ws/2002/04/secext"; + private static final String AUTH_PREFIX = "wss"; + private static final String AUTH_ELEMENT = "Security"; + + + private static final String TRANS_ID_NS = "http://egov.gv.at/pvp1.xsd"; + private static final String TRANS_IDPREFIX = "pvp"; + private static final String TRANS_ID_ELEMENT = "Client-Request-Id"; @Override public boolean handleMessage(SOAPMessageContext context) { @@ -64,11 +71,15 @@ public class BmiSoapTransactionHeaderInterceptor implements SOAPHandler