Tout dépend comment tu gères ton authentification.
Si elle est gérée par le conteneur Web J2EE (Basic ou FORM)
Ex:


<login-config>
<auth-method>BASIC</auth-method>
...