@Override
  public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)
    throws CertificateException {
    x509ExtendedTrustManager.checkClientTrusted(chain, authType, socket);
    if (hostnameVerificationEnabled) {
      performHostVerification(socket.getInetAddress(), chain[0]);
    }
  }
Instantiate a new HBaseTrustManager.
@param x509ExtendedTrustManager    The trustmanager to use for
                                   checkClientTrusted/checkServerTrusted logic
@param hostnameVerificationEnabled If true, this TrustManager should verify hostnames of peers
                                   when checking trust.
@param allowReverseDnsLookup       If true, we will fall back on reverse dns if resolving of
                                   host fails
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/tls/HBaseTrustManager.java