Skip to content

Commit

Permalink
Merge pull request #16 from WorldHealthOrganization/feat/java-21-trus…
Browse files Browse the repository at this point in the history
…tedissuer-hash

Feat: Update TrustedIssuer Hash Calculation + Update to Java 21
  • Loading branch information
f11h authored Jun 7, 2024
2 parents ecfc1e8 + 2b11f1a commit 7217485
Show file tree
Hide file tree
Showing 104 changed files with 133 additions and 147 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/checkout@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/checkout@v3
with:
Expand Down
57 changes: 23 additions & 34 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@

<groupId>eu.europa.ec.dgc</groupId>
<artifactId>ddcc-gateway-lib</artifactId>
<version>2.0.2</version>
<version>2.1.0</version>
<packaging>jar</packaging>

<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-parent</artifactId>
<version>2023.0.2</version>
</parent>

<name>ddcc-gateway-lib</name>
<description>Library with common used methods and classes for Digital Documentation Covid Certificate Gateway.
</description>
Expand All @@ -17,24 +23,21 @@
</organization>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<!-- charset -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- dependencies -->
<owasp.version>9.0.2</owasp.version>
<bcpkix.version>1.76</bcpkix.version>
<lombok.version>1.18.30</lombok.version>
<mapstruct.version>1.5.3.Final</mapstruct.version>
<commonsio.version>2.11.0</commonsio.version>
<cbor.version>4.5.2</cbor.version>
<mockwebserver.version>4.12.0</mockwebserver.version>
<plugin.checkstyle.version>3.2.1</plugin.checkstyle.version>
<plugin.sonar.version>3.9.1.2184</plugin.sonar.version>
<plugin.surefire.version>3.2.2</plugin.surefire.version>
<plugin.jacoco.version>0.8.11</plugin.jacoco.version>
<spring.boot.version>3.0.13</spring.boot.version>
<owasp.version>9.2.0</owasp.version>
<bcpkix.version>1.78.1</bcpkix.version>
<mapstruct.version>1.5.5.Final</mapstruct.version>
<commonsio.version>2.16.1</commonsio.version>
<cbor.version>4.5.4</cbor.version>
<plugin.checkstyle.version>3.4.0</plugin.checkstyle.version>
<plugin.jacoco.version>0.8.12</plugin.jacoco.version>
<!-- <jackson.version>2.15.4</jackson.version>-->
<!-- <lombok.version></lombok.version>-->

<!-- license -->
<license.projectName>WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib</license.projectName>
Expand Down Expand Up @@ -71,30 +74,23 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring.boot.version}</version>
<!-- <optional>true</optional>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring.boot.version}</version>
<!-- <optional>true</optional>-->
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>4.0.4</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring.boot.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
<version>13.1</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
Expand All @@ -104,7 +100,6 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -125,17 +120,16 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.14.3</version>
<version>${jackson-bom.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.14.3</version>
<version>${jackson-bom.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>${mockwebserver.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -151,17 +145,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${plugin.surefire.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
Expand Down Expand Up @@ -261,6 +249,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<annotationProcessorPaths>
<path>
Expand All @@ -276,7 +265,7 @@
<path>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring.boot.version}</version>
<version>${project.parent.parent.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -361,11 +361,10 @@ protected Map<String, String> convertQueryParams(
}

private String getHashData(TrustedIssuerDto trustedIssuerDto) {
return trustedIssuerDto.getUuid() + HASH_SEPARATOR
+ trustedIssuerDto.getCountry() + HASH_SEPARATOR
return trustedIssuerDto.getCountry() + HASH_SEPARATOR
+ trustedIssuerDto.getName() + HASH_SEPARATOR
+ trustedIssuerDto.getUrl() + HASH_SEPARATOR
+ trustedIssuerDto.getType().name() + HASH_SEPARATOR;
+ trustedIssuerDto.getType().name();
}

@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ---license-start
* WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway-lib
* ---
* Copyright (C) 2022 T-Systems International GmbH and all other contributors
* Copyright (C) 2022 - 2024 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 7217485

Please sign in to comment.