NoopHostnameVerifier
@Deprecated @Contract(threading=IMMUTABLE) public class AllowAllHostnameVerifier extends AbstractVerifier
| Modifier and Type | Field and Description |
|---|---|
static AllowAllHostnameVerifier |
INSTANCE
已过时。
|
| Constructor and Description |
|---|
AllowAllHostnameVerifier()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
已过时。
|
void |
verify(String host, String[] cns, String[] subjectAlts)
已过时。
检查提供的主机名是否匹配任何提供的CN或“DNS”主题。
|
acceptableCountryWildcard, countDots, getCNs, getDNSSubjectAlts, verify, verify, verify, verifypublic static final AllowAllHostnameVerifier INSTANCE
public final void verify(String host, String[] cns, String[] subjectAlts)
X509HostnameVerifier复制
host - 要验证的主机名。
cns - 从X.509证书中提取的CN字段。
subjectAlts - 从X.509证书中提取的类型2(“DNS”)的Subject-Alt字段。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.