This commit is contained in:
Looly
2024-03-21 18:09:27 +08:00
parent 0e85436647
commit e7ace4ae57
4 changed files with 137 additions and 67 deletions

View File

@@ -13,7 +13,7 @@
package org.dromara.hutool.http.ssl;
import org.dromara.hutool.core.net.ssl.SSLProtocols;
import org.dromara.hutool.core.net.ssl.SSLUtil;
import org.dromara.hutool.core.net.ssl.SSLContextUtil;
import org.dromara.hutool.core.net.ssl.SSLContextBuilder;
import org.dromara.hutool.core.net.ssl.TrustAnyHostnameVerifier;
import org.dromara.hutool.core.net.ssl.TrustAnyTrustManager;
@@ -47,7 +47,7 @@ public class SSLInfo {
*/
public static final SSLInfo TRUST_ANY = SSLInfo.of()
.setHostnameVerifier(TrustAnyHostnameVerifier.INSTANCE)
.setSslContext(SSLUtil.createTrustAnySSLContext())
.setSslContext(SSLContextUtil.createTrustAnySSLContext())
.setTrustManager(TrustAnyTrustManager.INSTANCE);
/**