[OT] How to determine whether a session or request is SSL

2005-03-11 Thread Jan Behrens
Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered

Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Rodrigo Avila
To know if the user use ssl, try the boolean request.isSecure(). On Fri, 11 Mar 2005 13:27:09 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user

Antwort: Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Jan Behrens
Thanks Rodrigo, do you know of a way to get the encryption level of the request as well? (40bit, 128bit, ...) TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97

Re: Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Rodrigo Avila
Sincerily... I don know. But, reading [http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html], I see this tip: To access the SSL session ID from the request, use: String sslID = (String)request.getAttribute(javax.servlet.request.ssl_session); And, in the ServletRequest javadoc

Antwort: Re: Re: [OT] How to determine whether a session or request is SSL

2005-03-11 Thread Jan Behrens
Thanks a lot Rodrigo! I will try the second an see what I can come up with. Thanks again % have a nice weekend, Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97