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

useless methods for javax.net.ssl.SSLSocket

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description



      Name: ktR10099 Date: 12/16/2003



      Specification for javax.net.ssl.SSLSocket include several methods, that
      are aplicable only in server mode and thus are useless for SSLSocket,
      which work in client mode.

      For methods

      public abstract void setWantClientAuth(boolean want)
      public abstract boolean getWantClientAuth()
      public abstract void setNeedClientAuth(boolean need)
      public abstract boolean getNeedClientAuth()

      specification explicitly say, that "...This option is only useful for
      sockets in the server mode...", so it seems reasonable to specify, that
      those methods do not carry any functionality.

      For methods

      public abstract void setUseClientMode(boolean mode)
      public abstract boolean getUseClientMode()

      it seems reasonable to update the spec in such a way, that
      setUseClientMode() would do nothing and getUseClientMode() would always
      return true.

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

        Attachments

          Activity

            People

            • Assignee:
              wetmore Bradford Wetmore
              Reporter:
              kvtsunw Kvt Kvt (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: