現象
String id = (String)request.getAttribute("javax.servlet.request.ssl_session"); で、 null が返ってくる。
環境
* Java : Java1.7 * Eclipse : Eclipse Luna * Tomcat : Tomcat8
補足:「javax.servlet.request.ssl_session」について
http://www.kawaz.jp/pukiwiki/?Servletより抜粋 リクエストの SSL 接続で使用されているセッション ID
原因
http://tomcat.apache.org/migration-7.htmlより抜粋 Request attributes The custom request attribute javax.servlet.request.ssl_session provided to access the SSL session ID has been deprecated in favour of the new standard request attribute that is defined in the Servlet specification, javax.servlet.request.ssl_session_id. Support for the custom attribute will be removed in Tomcat 8. ⇒ つまり、Tomcat 8では、「javax.servlet.request.ssl_session」は削除されている