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

Add a method to set an Authenticator on a HttpURLConnection.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b148

      Description

      With today API, it is not possible to login to the same web site/server through HTTP with different credentials. This is because HttpURLConnection will always use the default Authenticator, which is global.

      Adding a new HttpURLConnection::setAuthenticator method would help solve this issue.

      For compatibility reasons, an HttpURLConnection on which no authenticator was explicitly set should continue using the default authenticator.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: