public class IgnoreSSLTool extends Object
该类主要实现HttpsURLConnection SSL 证书忽略
HttpsURLConnection SSL certificate ignore class
This class mainly implements HttpsURLConnection SSL certificate ignoring
| 构造器和说明 |
|---|
IgnoreSSLTool() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
setIsIgnore(boolean isIgnore)
设置是否忽略HTTPS请求的SSL证书,必须在openConnection之前调用
Set whether to ignore the SSL certificate of the HTTPS request, it must be called before openConnection
|
public static void setIsIgnore(boolean isIgnore)
throws IgnoreSSLException
Set whether to ignore the SSL certificate of the HTTPS request, it must be called before openConnection
IgnoreSSLException - 忽略SSL相关异常/警告类 Copyright © 2019. All rights reserved.