com.github.wzc789376152.utils.net.TrustAnyHostnameVerifier Maven / Gradle / Ivy
package com.github.wzc789376152.utils.net;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;
/**
* @author zhongquanliang 2020/1/18.
*/
public class TrustAnyHostnameVerifier implements HostnameVerifier {
@Override
public boolean verify(String hostname, SSLSession session) {
return true;
}
}