Package org.apache.hc.client5.http.ssl
Interface HttpClientHostnameVerifier
-
- All Superinterfaces:
javax.net.ssl.HostnameVerifier
- All Known Implementing Classes:
DefaultHostnameVerifier
@Contract(threading=STATELESS) public interface HttpClientHostnameVerifier extends javax.net.ssl.HostnameVerifier
ExtendedHostnameVerifier
interface.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
verify(java.lang.String host, java.security.cert.X509Certificate cert)
Verifies the supplied serverX509Certificate
and ensures it matches the original host name.
-
-
-
Method Detail
-
verify
void verify(java.lang.String host, java.security.cert.X509Certificate cert) throws javax.net.ssl.SSLException
Verifies the supplied serverX509Certificate
and ensures it matches the original host name.- Parameters:
host
- the original host name.cert
- the server certificate;- Throws:
javax.net.ssl.SSLException
-
-