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 diff --git a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java index 970b6a2..4c70204 100644 --- a/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java +++ b/src/main/java/com/clevertap/apns/clients/SyncOkHttpApnsClient.java @@ -50,7 +50,8 @@ /** * A wrapper around OkHttp's http client to send out notifications using Apple's HTTP/2 API. */ -public class SyncOkHttpApnsClient implements ApnsClient { +// NOSONAR +public class SyncOkHttpApnsClient implements ApnsClient { // NOSONAR private final String defaultTopic; private final String apnsAuthKey; @@ -264,7 +265,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());