The security elements are as follows:
This element maps roles to users or groups in the currently active realm.
The following table describes subelements for the security-role-mapping element.
Table A–6 security-role-mapping Subelements
Element |
Required |
Description |
---|---|---|
only one |
Contains the role name |
|
requires at least one principal-name or group-name |
Contains a principal (user) name in the current realm |
|
requires at least one principal-name or group-name |
Contains a group name in the current realm |
none
This element specifies a principal name for a servlet, which is used for the run-as role defined in web.xml.
The following table describes subelements for the servlet element.
Table A–7 servlet Subelements
Element |
Required |
Description |
---|---|---|
only one |
Contains the name of a servlet, which is matched to a servlet-name in web.xml. |
|
only one |
Contains a principal (user) name in the current realm. |
none
This element contains data that specifies the name of a servlet, which is matched to a servlet-name in web.xml. This name must be present in web.xml.
none
none
This element contains data that specifies the role-name in the security-role element of the web.xml file.
none
none
This element contains data that specifies a principal (user) name in the current realm.
none
none
This element contains data that specifies a group name in the current realm.
none
none