Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5053815

unspecified exceptions in X509TrustManager.checkClient[Server]Trusted

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic

      Description

      Name: bkR10012 Date: 05/27/2004


      The descriptions of the methods
          checkClientTrusted(X509Certificate[] chain, String authType)
      and checkServerTrusted(X509Certificate[] chain, String authType)
      of javax.net.ssl.X509TrustManager state:

      "Throws:
        IllegalArgumentException - if null or zero-length chain is passed in for
        the chain parameter or if null or zero-length string is passed in for the
        authType parameter
        CertificateException - if the certificate chain is not trusted by this
        TrustManager."

      But the implementation throws:
      -"java.security.cert.CertificateException: null or zero-length certificate
       chain" if null or zero-length chain is passed in for the chain parameter;

      -"sun.security.validator.ValidatorException: No trusted certificate found"
       if null or zero-length string is passed in for the authType parameter;

      -"NullPointerException" if chain array contains null

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            xuelei Xue-Lei Fan
            Reporter:
            kuzsunw Kuz Kuz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: