JDK-8146619 : Re-examine supportness of public classes in com.sun.security.auth.**
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.security
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-01-07
  • Updated: 2017-02-16
  • Resolved: 2016-06-17
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 b124Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
There are several classes in com.sun.security.auth with @jdk.Exported(false) need to be re-examined:

com.sun.security.auth.PolicyFile
com.sun.security.auth.SolarisNumericGroupPrincipal
com.sun.security.auth.SolarisNumericUserPrincipal
com.sun.security.auth.SolarisPrincipal
com.sun.security.auth.X500Principal
com.sun.security.auth.module.SolarisLoginModule
com.sun.security.auth.module.SolarisSystem

The granularity of exports with the module system is at the level of packages. If a package is exported then all public types in that package are accessible.

We should decide if the above classes are supported or not. If not supported then they should be removed, at least changed to be non-public.