• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP:Redirection based on Cipher Strength of Browser

 
Anurag Gupta
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to Redirect to different pages based on the client Browser's Cipher Strength (56 bit and 128 bit).
The Web Server being used is Apache / IBM Http Server.
Is it possible to do so? If yes , then how ?
Regards
Anurag
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the cipher strength is specified in a HTTP header you can get the header contents with the getHeader( String name ) method in the HttpServletRequest class.
Bill
 
Dan Richardson
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your servlet container is servlet 2.3 compliant, there are some additional options available. Check out the servlet 2.3 spec. There is a method of the ServletRequest called isSecure. If this returns true, you can check the following from the request:
Integer keySize = (Integer)request.getAttribute("javax.servlet.request.key_size");
This is the bit size of the encryption algorithm.
You can also check the cipher suite.
String cipherSuite = (String)request.getAttribute("javax.servlet.request.cipher_suite");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!