I need to write a new JAVA program from a PHP old version.
In PHP they used HTTP_SSL_PROTOCOL to get TLSv1 or TLSv1.2 and HTTP_SSL_CIPHER to get AES128-SHA or other .. to get info of the client.
private function getInfos() {
// Récupération du protocole
if(isset($_SERVER) && isset($_SERVER['HTTP_SSL_PROTOCOL'])) {
$this->protocol = $_SERVER['HTTP_SSL_PROTOCOL'];
}
// Récupération du Cipher
if(isset($_SERVER) && isset($_SERVER['HTTP_SSL_CIPHER'])) {
$this->cipher = $_SERVER['HTTP_SSL_CIPHER'];
}
}
In JAVA with Tomcat I'm not able to get it on my HttpServletRequest, I check Tomcat help but didn't find anything :( I try to get it from HTTP header didn't get anything.
Thanks