I have following security-constraint property in web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>TempName123</web-resource-name>
<url-pattern>/a/b/c</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
Here, the main requirement is that this constraint needs to be loaded on certain basis. During installation, some user may chose to add this security or some may not.
Is there any property based feature in jboss/tomcat which when set to true then this security constraint is considered, otherwise ignored ????
PS: I am trying to avoid file based operations to edit web.xml file each and every time this feature needs to be added/removed.