diff options
author | Thomas <> | 2023-03-01 13:02:29 +0100 |
---|---|---|
committer | Thomas <> | 2023-03-01 13:02:29 +0100 |
commit | 779eb51796aecd05606b7abc69851b02214d21cd (patch) | |
tree | 70f5bfcf330aeaf8828690b5ab228954d6423cab /ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger | |
parent | 4dd662e723ed69ceb4a7f39db352bd60c17cc2bc (diff) | |
download | National_eIDAS_Gateway-779eb51796aecd05606b7abc69851b02214d21cd.tar.gz National_eIDAS_Gateway-779eb51796aecd05606b7abc69851b02214d21cd.tar.bz2 National_eIDAS_Gateway-779eb51796aecd05606b7abc69851b02214d21cd.zip |
feat(proxy): add eIDAS-Connector country-code as specific element into statistic log
Diffstat (limited to 'ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger')
-rw-r--r-- | ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java | 7 |
1 files changed, 6 insertions, 1 deletions
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; } - } |