private static void propogateSecureSession ( HttpServletRequest request , Message message ) { final String cipherSuite = ( String ) request . getAttribute ( SSL_CIPHER_SUITE_ATTRIBUTE ) ; if ( cipherSuite != null ) { final java . security . cert . Certificate [ ] certs = ( java . security . cert . Certificate [ ] ) request . getAttribute ( SSL_PEER_CERT_CHAIN_ATTRIBUTE ) ; message . put ( TLSSessionInfo . class , new TLSSessionInfo ( cipherSuite , null , certs ) ) ; } }
Propogate in the message a TLSSessionInfo instance representative of the TLS - specific information in the HTTP request .