All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.hutool.http.ssl.TrustAnyHostnameVerifier Maven / Gradle / Ivy

There is a newer version: 1.0.13.10
Show newest version
package com.dahuatech.hutool.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) {
    return true; // 直接返回true
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy