Package: org.conscrypt

ConscryptHostnameVerifier

public interface ConscryptHostnameVerifier
This interface is used to implement hostname verification in Conscrypt. Unlike with javax.net.ssl.HostnameVerifier , the hostname verifier is called whenever hostname verification is needed, without any use of default rules.

Public Methods

verify

public abstract boolean verify(X509Certificate[] certs, String hostname, SSLSession session)
Returns whether the given hostname is allowable given the peer's authentication information from the given session.