Class OkHostnameVerifier

    • Method Detail

      • verify

        public boolean verify​(String host,
                              SSLSession session)
        Description copied from interface: HostnameVerifier
        Verifies that the specified hostname is allowed within the specified SSL session.
        Specified by:
        verify in interface HostnameVerifier
        Parameters:
        host - the hostname.
        session - the SSL session of the connection.
        Returns:
        true if the specified hostname is allowed, otherwise false.