Class AbstractVerifier

    • Constructor Detail

      • AbstractVerifier

        public AbstractVerifier()
        Deprecated.
    • Method Detail

      • verify

        public final void verify​(String host,
                                 SSLSocket ssl)
                          throws IOException
        Deprecated.
        Description copied from interface: X509HostnameVerifier
        Verifies that the host name is an acceptable match with the server's authentication scheme based on the given SSLSocket.
        Specified by:
        verify in interface X509HostnameVerifier
        Parameters:
        host - the host.
        ssl - the SSL socket.
        Throws:
        IOException - if an I/O error occurs or the verification process fails.
      • acceptableCountryWildcard

        public static boolean acceptableCountryWildcard​(String cn)
        Deprecated.
      • getDNSSubjectAlts

        public static String[] getDNSSubjectAlts​(X509Certificate cert)
        Deprecated.
        Extracts the array of SubjectAlt DNS names from an X509Certificate. Returns null if there aren't any.

        Note: Java doesn't appear able to extract international characters from the SubjectAlts. It can only extract international characters from the CN field.

        (Or maybe the version of OpenSSL I'm using to test isn't storing the international characters correctly in the SubjectAlts?).

        Parameters:
        cert - X509Certificate
        Returns:
        Array of SubjectALT DNS names stored in the certificate.
      • countDots

        public static int countDots​(String s)
        Deprecated.
        Counts the number of dots "." in a string.
        Parameters:
        s - string to count dots from
        Returns:
        number of dots