• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP:Redirection based on Cipher Strength of Browser

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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");
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic