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

useless methods for javax.net.ssl.SSLSocket

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 5.0
    • security-libs



      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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: