I embedded Jetty server into my application. In my application I can read cipher-suite it negotiated by reading javax.servlet.request.cipher_suite
of request attributes. Now I want to check if my clients use TLSv1.0, TLSv.1.1 or TLSv.1.2. If I enable debugging of SSL I can see it on my console:
qtp2819825-43, WRITE: TLSv1.2 Application Data, length = 8038
But how can I read it in my handler()
?
I studied both org.eclipse.jetty.server.Request
and javax.servlet.http.HttpServletRequest
. There is getProtocol()
method but it returns HTTP/1.1
.