Java Servlet Programming (Java Series)

Java Servlet Programming, 2nd Edition > C. Deployment Descriptor DTD Reference > <security-constraint>

 
< BACKCONTINUE >
<security-constraint>

Synopsis

<!ELEMENT security-constraint (web-resource-collection+, auth-constraint?, user-data-constraint?)>

Description

The <security-constraint> element is used to associate security constraints with one or more web resource collections.

<security-constraint> <web-resource-collection> <web-resource-name>SecretProtection</web-resource-name> <url-pattern>/servlet/SalaryServer</url-pattern> <url-pattern>/servlet/secret</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>manager</role-name> </auth-constraint> </security-constraint>

Last updated on 3/20/2003

Java Servlet Programming, 2nd Edition, © 2001 O'Reilly

< BACKCONTINUE >

Категории