Name

<auth-constraint>

Synopsis

<!ELEMENT auth-constraint (description?, role-name*)>

Description

The <auth-constraint> element indicates the user roles that should be permitted access to a resource collection. The role names used here must appear in a <security-role-ref> element.

<security-constraint>
    <web-resource-collection>
        ...
    </web-resource-collection>
    <auth-constraint>
        <role-name>manager</role-name>
    </auth-constraint>
</security-constraint>

Get Java Servlet Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.