Jump to Real's How-to Main page

Detect if the connection is via a secure channel

Use the servlet request's isSecure() or getAuthType() methods. Or you look at these HTTP headers : CERT_KEYSIZE , CERT_KEYSIZE, HTTPS_KEYSIZE

Note: for a javascript solution see this HowTo


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]