top.jfunc.http.ssl.TrustAnyHostnameVerifier Maven / Gradle / Ivy
package top.jfunc.http.ssl;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;
/**
* https 域名校验
* @author Looly
*/
public class TrustAnyHostnameVerifier implements HostnameVerifier {
@Override
public boolean verify(String hostname, SSLSession session) {
// 直接返回true
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy