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

Add a method to set an Authenticator on a HttpURLConnection.

XMLWordPrintable

    • b148

      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.

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

              Created:
              Updated:
              Resolved: