Class ZKTrustManager

  • All Implemented Interfaces:
    TrustManager, X509TrustManager

    public class ZKTrustManager
    extends X509ExtendedTrustManager
    A custom TrustManager that supports hostname verification via org.apache.http.conn.ssl.DefaultHostnameVerifier. We attempt to perform verification using just the IP address first and if that fails will attempt to perform a reverse DNS lookup and verify using the hostname.