The javax.net.ssl.SSLSession.getPeerCertificateChain() method implementation was removed from
the SunJSSE provider and HTTP client implementation in Java SE 15. The default implementation will now throw
an UnsupportedOperationException. Applications using this method should be updated to use
the javax.net.ssl.SSLSession.getPeerCertificates() method instead.
This rule has an automated fix. Copy the custom configuration to your application build file to enable it.
For more information on these changes, see Removed Features and Options in Java SE 15.