Hi,
I used to get very confused about remmebring security tags as they all sound similar
I have tried to write them in a way to memorize easily , hope would be useful for any1.
Security Tags :
1)<login-config>Under <web-app>
<auth-method>
<form-login-config>
<form-login-page>
<form-error-page>
</form-error-page>
</form-login-page>
</form-login-config>
</auth-method>
</login-config>
2)<tomcat-users>In tomcat-users.xml
<role rolename/><user username password/ >
</tomcat-users>
3)<security-role>Under <web-app>
<role-name>
</role-name>
</security-role>
4)<security-constraint>Under <web-app>
<web-resource-collection>
<web-resource-name></web-resource-name>
<url-pattern></url-pattern>
<http-method></http-method>
</web-resource-collection>
<auth-constraint>
<role-name>
</role-name>
</auth-constraint>
<user-data-constraint>
<transport-gaurantee>
</transport-gaurantee>
</user-data-constraint>
<security-constraint>
5)<security-role-ref>Under <
servlet>
<role-link></role-link>
<role-name></role-name>
</security-role-ref>
Thanks
Vishal Chugh