]> source.dussan.org Git - poi.git/commitdiff
fix SSL->TLS and LOG typo
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 22 Feb 2022 20:09:31 +0000 (20:09 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 22 Feb 2022 20:09:31 +0000 (20:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898328 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java

index 427bdff7bfc25aceafea0b03cd39db9a64e01149..f112f48d98e59cda782d0ab6c280343cc6e19a1f 100644 (file)
@@ -54,7 +54,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
     protected static final String BASIC_AUTH = "Authorization";
     protected static final String REDIRECT_LOCATION = "Location";
 
-    private static final Logger LOG = LogManager.getLogger(TSPTimeStampService.class);
+    private static final Logger LOG = LogManager.getLogger(TimeStampSimpleHttpClient.class);
 
     // how large a timestamp response is expected to be
     // can be overwritten via IOUtils.setByteArrayMaxOverride()
@@ -265,7 +265,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
         HttpsURLConnection conns = (HttpsURLConnection)conn;
 
         try {
-            SSLContext sc = SSLContext.getInstance("SSL");
+            SSLContext sc = SSLContext.getInstance("TLS");
             sc.init(null, new TrustManager[]{new UnsafeTrustManager()}, RandomSingleton.getInstance());
             conns.setSSLSocketFactory(sc.getSocketFactory());
             conns.setHostnameVerifier((hostname, session) -> true);