diff --git a/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustListController.java b/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustListController.java index b878803a..79717af1 100644 --- a/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustListController.java +++ b/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustListController.java @@ -271,7 +271,7 @@ public ResponseEntity> downloadTrustListFilteredByCountryAndT }, summary = "Returns a filtered list of trusted certificates. The provided search criteria are additive." + " It is possible to provide more than one value for each criteria. (Except for withFederation)", - tags = {"Trust Lists"}, + tags = {"Trust Lists", "GDHCN"}, parameters = { @Parameter( in = ParameterIn.QUERY, @@ -350,7 +350,7 @@ public ResponseEntity> downloadTrustListCer @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_DISTINGUISH_NAME) }, summary = "Returns the list of trusted issuers filtered by criterias.", - tags = {"Trust List"}, + tags = {"Trust List", "GDHCN"}, parameters = { @Parameter( in = ParameterIn.QUERY, @@ -411,7 +411,7 @@ public ResponseEntity> getTrustedIssuersByCountry( @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_DISTINGUISH_NAME) }, summary = "Returns the list of trusted issuers filtered by criterias.", - tags = {"Trust List"}, + tags = {"Trust List", "GDHCN"}, parameters = { @Parameter( in = ParameterIn.QUERY, diff --git a/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedCertificateController.java b/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedCertificateController.java index c0f116cf..acb5a479 100644 --- a/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedCertificateController.java +++ b/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedCertificateController.java @@ -80,7 +80,7 @@ public class TrustedCertificateController { @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_DISTINGUISH_NAME) }, summary = "Uploads Trusted Certificate", - tags = {"Trusted Certificate"}, + tags = {"Trusted Certificate", "GDHCN"}, requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody( required = true, description = "Request body with payload.", @@ -146,8 +146,9 @@ public ResponseEntity postTrustedCertificate( DgcMdc.put("payloadCertSubject", parser.getPayload().getSubject().toString()); try { + String domain = body.getDomain() == null ? "DDCC" : body.getDomain(); signerInformationService.addTrustedCertificate(parser.getPayload(), parser.getSigningCertificate(), - body.getCms(), countryCode, body.getKid(), body.getGroup(), body.getDomain(), + body.getCms(), countryCode, body.getKid(), body.getGroup(), domain, body.getProperties()); } catch (SignerInformationService.SignerCertCheckException e) { DgcMdc.put(MDC_VERIFICATION_ERROR_REASON, e.getReason().toString()); diff --git a/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedReferenceController.java b/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedReferenceController.java index f751a084..7b4d3c43 100644 --- a/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedReferenceController.java +++ b/src/main/java/eu/europa/ec/dgc/gateway/restapi/controller/TrustedReferenceController.java @@ -78,7 +78,7 @@ public class TrustedReferenceController { @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_HASH), @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_DISTINGUISH_NAME) }, - tags = {"Trusted Reference"}, + tags = {"Trusted Reference", "GDHCN"}, summary = "Upload a new trusted reference", description = "Endpoint to upload a new trusted reference.", requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody( @@ -146,7 +146,7 @@ public ResponseEntity uploadTrustedReference( @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_HASH), @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_DISTINGUISH_NAME) }, - tags = {"Trusted Reference"}, + tags = {"Trusted Reference", "GDHCN"}, summary = "Get a single trusted references", responses = { @ApiResponse( @@ -190,7 +190,7 @@ public ResponseEntity getTrustedReference( @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_HASH), @SecurityRequirement(name = OpenApiConfig.SECURITY_SCHEMA_DISTINGUISH_NAME) }, - tags = {"Trusted Reference"}, + tags = {"Trusted Reference", "GDHCN"}, summary = "Delete a Trusted Reference", requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody( required = true, diff --git a/src/main/java/eu/europa/ec/dgc/gateway/service/TrustedReferenceService.java b/src/main/java/eu/europa/ec/dgc/gateway/service/TrustedReferenceService.java index 60e175c7..a37fd6e0 100644 --- a/src/main/java/eu/europa/ec/dgc/gateway/service/TrustedReferenceService.java +++ b/src/main/java/eu/europa/ec/dgc/gateway/service/TrustedReferenceService.java @@ -213,7 +213,7 @@ public TrustedReferenceEntity addTrustedReference( trustedReferenceEntity.setReferenceVersion(parsedTrustedEntity.getReferenceVersion()); trustedReferenceEntity.setContentType(parsedTrustedEntity.getContentType()); trustedReferenceEntity.setDomain( - parsedTrustedEntity.getDomain() == null ? "DCC" : parsedTrustedEntity.getDomain()); + parsedTrustedEntity.getDomain() == null ? "DDCC" : parsedTrustedEntity.getDomain()); if (parsedTrustedEntity.getUuid() == null) { trustedReferenceEntity.setUuid(UUID.randomUUID().toString()); }