JDK-8169068 : Add a new method: java.net.Authenticator.getDefault()
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-11-02
  • Updated: 2017-08-22
  • Resolved: 2016-11-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b147Fixed
Related Reports
Relates :  
Relates :  
Description
Some classes in the JDK (jdk.xml.bind) are using reflection and Field.setAccessible to get the default authenticator. 

We propose to add a new public method to get the default, and to protect that with a NetPermission("requestPasswordAuthentication").

Comments
Review thread on net-dev: http://mail.openjdk.java.net/pipermail/net-dev/2016-November/010433.html
11-11-2016