From 779eb51796aecd05606b7abc69851b02214d21cd Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 1 Mar 2023 13:02:29 +0100 Subject: feat(proxy): add eIDAS-Connector country-code as specific element into statistic log --- .../eidas/specific/proxy/logger/AdvancedStatisicLogger.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ms_specific_proxyservice/src/main/java/at/asitplus') diff --git a/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java b/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java index fda988a6..cf55281d 100644 --- a/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java +++ b/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java @@ -13,6 +13,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; +import at.asitplus.eidas.specific.modules.msproxyservice.MsProxyServiceConstants; import at.gv.egiz.eaaf.core.api.IRequest; import at.gv.egiz.eaaf.core.api.IStatusMessenger; import at.gv.egiz.eaaf.core.api.data.PvpAttributeDefinitions; @@ -56,6 +57,8 @@ public class AdvancedStatisicLogger implements IStatisticLogger { final StatisticLogEntry entry = buildCoreEntry(protocolRequest); entry.setSuccess(SuccessEntry.builder() .spSector(protocolRequest.getServiceProviderConfiguration().getAreaSpecificTargetIdentifier()) + .spCountry(protocolRequest.getServiceProviderConfiguration().getConfigurationValue( + MsProxyServiceConstants.CONIG_PROPS_CONNECTOR_COUNTRYCODE)) .withMandates(selectMandateProcessType(authData)) .build()); writeEntryToLog(entry); @@ -150,6 +153,9 @@ public class AdvancedStatisicLogger implements IStatisticLogger { @JsonProperty("spSector") private final String spSector; + @JsonProperty("spCountry") + private final String spCountry; + @JsonProperty("withMandates") private final MandateProcess withMandates; @@ -167,5 +173,4 @@ public class AdvancedStatisicLogger implements IStatisticLogger { private final String errorMessage; } - } -- cgit v1.2.3