Class HostnameVerifyingListener

    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • hostnameVerifier

        private final HostnameVerifier hostnameVerifier
        Hostname verifier invoked when the handshake completes.
      • invoked

        private boolean invoked
        Whether this listener has been invoked.
      • verified

        private boolean verified
        Whether hostname verification succeeded.
      • hostname

        private String hostname
        Hostname used in verification.
    • Constructor Detail

      • HostnameVerifyingListener

        public HostnameVerifyingListener​(HostnameVerifier verifier)
        Creates a new verifying handshake completed listener. Hostname will be derived from the SSL session.
        Parameters:
        verifier - hostname verifier
      • HostnameVerifyingListener

        public HostnameVerifyingListener​(HostnameVerifier verifier,
                                         String name)
        Creates a new verifying handshake completed listener.
        Parameters:
        verifier - hostname verifier
        name - hostname to verify