JDK-8074531 : Remove javax.security.cert.X509Certificate usage in internal networking packages
  • Type: Enhancement
  • Component: security-libs
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-03-06
  • Updated: 2015-06-04
  • Resolved: 2015-03-24
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 b57Fixed
Related Reports
Relates :  
Description
The javax.security.cert is being deprecated in JDK-8073430. Some methods in the internal sun.net.* and com.sun.net.* packages use the javax.security.cert.X509Certificate type, however. These methods should be removed or changed to use java.security.cert.Certificate instead.

These methods can probably be removed:
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getServerCertificateChain()
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getServerCertificateChain()
sun.net.www.protocol.https.HttpsClient.getServerCertificateChain()
sun.net.www.protocol.https.HttpsURLConnectionImpl.getServerCertificateChain()

This method may have to be modified:
com.sun.net.ssl.HttpsURLConnection.getServerCertificateChain()