Class AbstractHostnameVerifier

    • Constructor Detail

      • AbstractHostnameVerifier

        public AbstractHostnameVerifier()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • doVerify

        protected abstract boolean doVerify​(String hostname,
                                            SSLSession session)
        Performs the actual verification of the host.
        Parameters:
        hostname - the hostname to check
        session - the current session
        Returns:
        true if passes check
      • verify

        public boolean verify​(String hostname,
                              SSLSession session)
        Verifies the host.
        Specified by:
        verify in interface HostnameVerifier
        Parameters:
        hostname - the hostname to check
        session - the current session
        Returns:
        true if passes check