@Contract(threading=STATELESS) public interface HttpClientHostnameVerifier extends HostnameVerifier
HostnameVerifier interface.| 限定符和类型 | 方法和说明 |
|---|---|
void |
verify(String host,
X509Certificate cert)
Verifies the supplied server
X509Certificate and ensures it matches
the original host name. |
verifyvoid verify(String host, X509Certificate cert) throws SSLException
X509Certificate and ensures it matches
the original host name.host - the original host name.cert - the server certificate;SSLExceptionCopyright © 2023. All rights reserved.