Browse Source

fix SSL->TLS and LOG typo

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898328 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_1
Andreas Beeker 2 years ago
parent
commit
63f2572c62

+ 2
- 2
poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java View File

protected static final String BASIC_AUTH = "Authorization"; protected static final String BASIC_AUTH = "Authorization";
protected static final String REDIRECT_LOCATION = "Location"; 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 // how large a timestamp response is expected to be
// can be overwritten via IOUtils.setByteArrayMaxOverride() // can be overwritten via IOUtils.setByteArrayMaxOverride()
HttpsURLConnection conns = (HttpsURLConnection)conn; HttpsURLConnection conns = (HttpsURLConnection)conn;


try { try {
SSLContext sc = SSLContext.getInstance("SSL");
SSLContext sc = SSLContext.getInstance("TLS");
sc.init(null, new TrustManager[]{new UnsafeTrustManager()}, RandomSingleton.getInstance()); sc.init(null, new TrustManager[]{new UnsafeTrustManager()}, RandomSingleton.getInstance());
conns.setSSLSocketFactory(sc.getSocketFactory()); conns.setSSLSocketFactory(sc.getSocketFactory());
conns.setHostnameVerifier((hostname, session) -> true); conns.setHostnameVerifier((hostname, session) -> true);

Loading…
Cancel
Save