JDK-8145370 : Deprecate SSLSession.getPeerCertificateChain method
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-12-15
  • Updated: 2015-12-16
  • Resolved: 2015-12-16
Related Reports
Duplicate :  
Description
For historical reason, the returned class of SSLSession.getPeerCertificateChain() is javax.security.cert.X509Certificate, but not java.security.cert.X509Certificate.  It would better to deprecate this method so that applications can get explicit compiler warning message to move to use  SSLSession.getPeerCertificates() instead.