private static X509Certificate[] getCertChain(Request jettyRequest) {
        return Optional.ofNullable(jettyRequest.getAttribute(EndPoint.SslSessionData.ATTRIBUTE))
                .map(EndPoint.SslSessionData.class::cast)
                .map(EndPoint.SslSessionData::peerCertificates)
                .orElse(null);
    }
@author Simon Thoresen Hult
@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/HttpRequestFactory.java