Sun Java System Web Server 6.1 SP7 Programmer's Guide to Web Applications

security-role-mapping

Maps roles to users or groups in the currently active realm.

Subelements

The following table describes subelements for the security-role-mapping element. The left column lists the subelement name, the middle column indicates the requirement rule, and the right column describes what the element does.

Table 6–9 security-role-mapping Subelements

Element  

Required  

Description  

role-name

only one 

Contains the role name. 

principal-name

requires at least one principal-name or group-name

Contains a principal (user) name in the current realm. 

group-name

requires at least one principal-name or group-name

Contains a group name in the current realm. 

Attributes

none