JDK-8241048 : Release Note: Retired the Deprecated SSLSession.getPeerCertificateChain() Method Implementation
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 15
  • Priority: P3
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-03-16
  • Updated: 2021-12-02
  • Resolved: 2021-12-02
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 15
15Resolved
Description
The implementation of the deprecated `SSLSession.getPeerCertificateChain()` method has been removed from the JDK in the SunJSSE provider and the HTTP client implementation.  The default implementation of this method has been changed to throw UnsupportedOperationException.

`SSLSession.getPeerCertificateChain()` is a deprecated method and will be removed in a future release.  To mitigate the removal compatibility impact, applications should use the `SSLSession.getPeerCertificates()` method instead.  For service providers,  please remove this method from the existing implementation, and do not support this method in any new implementation.