Package org.conscrypt

Interface ConscryptHostnameVerifier

All Known Implementing Classes:
OkHostnameVerifier

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

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • verify

      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.