Hello,
Here is the new development.
I tried your suggestion on my local machine (weblogic 8.1 sp3)
and output was as follows:
------------------- 128-bit size: 56
------------------- Cipher : TLS_RSA_WITH_DES_CBC_SHA
My browser supports 128 encryption and I wonder why it is returning 56 as value.
The code snippet is as follows:
1. Integer size = (Integer) request.getAttribute("javax.servlet.request.key_size");
2
String abc = (String) request.getAttribute("javax.servlet.request.cipher_suite");
System.out.println("------------------- 128-bit size: " + size);
System.out.println("------------------- Cipher : " + abc);
if (size == null || size.intValue() < 128) {
System.out.println("******************* Browser DOES NOT support 128-bit encryption **********************");
}
else {
System.out.println("******************* Browser SUPPORT 128-bit encryption **********************");
}
---NB