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

(spec) Unexpected IllegalArgumentException in SSLSocket.setEnabledProtocols

    XMLWordPrintable

    Details

      Description



      Name: bkR10012 Date: 06/01/2004


      The description of the
      SSLSocket.setEnabledProtocols(String[] protocols)
      says:
      "Throws:
        IllegalArgumentException - when one or more of the protocols named by the
        parameter is not supported or when the protocols parameter is null."

      But the implementation throws unexpected IllegalArgumentException
      if protocols array contains only one supported protocol "SSLv2Hello":
      java.lang.IllegalArgumentException: SSLv2Hellocannot be enabled unless TLSv1 or
      SSLv3 is also enabled

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: