Sun Java System Web Server 7.0 Developer's Guide to Java Web Applications

security-role-mapping Element

This element maps roles to users or groups in the currently active realm.

Subelements

The following table describes subelements for the security-role-mapping element.

Table A–6 security-role-mapping Subelements

Element  

Required  

Description  

role-name Element

only one 

Contains the role name 

principal-name Element

requires at least one principal-name or group-name

Contains a principal (user) name in the current realm 

group-name Element

requires at least one principal-name or group-name

Contains a group name in the current realm 

Attributes

none