Top Description Methods
org.apache.hc.client5.http.ssl

public Interface HttpClientHostnameVerifier

extends HostnameVerifier
Known Direct Implementers
org.apache.hc.client5.http.ssl.DefaultHostnameVerifier
Annotations
@Contract
threading:STATELESS
Imports
java.security.cert.X509Certificate, javax.net.ssl.HostnameVerifier, .SSLException, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior

Extended HostnameVerifier interface.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
verify(String
the original host name.
host
,
X509Certificate
the server certificate;
cert
)

Verifies the supplied server X509Certificate and ensures it matches the original host name.

Inherited from javax.net.ssl.HostnameVerifier:
verify

Method Detail

verifyback to summary
public void verify(String host, X509Certificate cert) throws SSLException

Verifies the supplied server X509Certificate and ensures it matches the original host name.

Parameters
host:String

the original host name.

cert:X509Certificate

the server certificate;