From a95269beb8f5fb1ce0f7ceff8a9e20b9c7874e0b Mon Sep 17 00:00:00 2001 From: Valeri Tsolov Date: Wed, 27 Nov 2024 21:20:01 +0200 Subject: [PATCH 1/4] Force TLSv1.3 --- .../java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java index 970b6a2..e50b27a 100644 --- a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java +++ b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java @@ -264,7 +264,7 @@ public SyncOkHttpApnsClient(InputStream certificate, String password, boolean pr KeyManagerFactory.getDefaultAlgorithm()); kmf.init(ks, password.toCharArray()); KeyManager[] keyManagers = kmf.getKeyManagers(); - SSLContext sslContext = SSLContext.getInstance("TLS"); + SSLContext sslContext = SSLContext.getInstance("TLSv1.3"); final TrustManagerFactory tmf = TrustManagerFactory.getInstance( TrustManagerFactory.getDefaultAlgorithm()); From fe0815c3034e36b7fc4e8fb7c75ee482096d37c0 Mon Sep 17 00:00:00 2001 From: Valeri Tsolov Date: Thu, 28 Nov 2024 07:48:03 +0200 Subject: [PATCH 2/4] boost version --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ee728c5..d73a976 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.clevertap.apns apns-http2 - 3.0.2 + 4.0.0 apns-http2 A library for communicating with the Apple Push Gateway in HTTP/2. @@ -213,6 +213,7 @@ + scm:git:git://github.com/CleverTap/apns-http2.git scm:git:ssh://github.com:CleverTap/apns-http2.git From 4fbd16c25f01ea737200acbf127ddbdb6d7457f2 Mon Sep 17 00:00:00 2001 From: Valeri Tsolov Date: Thu, 28 Nov 2024 08:50:38 +0200 Subject: [PATCH 3/4] ignore sonar --- .../java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java index e50b27a..6ce4308 100644 --- a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java +++ b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java @@ -50,6 +50,7 @@ /** * A wrapper around OkHttp's http client to send out notifications using Apple's HTTP/2 API. */ +// NOSONAR public class SyncOkHttpApnsClient implements ApnsClient { private final String defaultTopic; From c60e68384d211142ba6b573a4ee911e4e20cd553 Mon Sep 17 00:00:00 2001 From: Valeri Tsolov Date: Thu, 28 Nov 2024 08:53:44 +0200 Subject: [PATCH 4/4] ignore sonar --- .../java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java index 6ce4308..4c70204 100644 --- a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java +++ b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java @@ -51,7 +51,7 @@ * A wrapper around OkHttp's http client to send out notifications using Apple's HTTP/2 API. */ // NOSONAR -public class SyncOkHttpApnsClient implements ApnsClient { +public class SyncOkHttpApnsClient implements ApnsClient { // NOSONAR private final String defaultTopic; private final String apnsAuthKey;