The <security-role-ref> element is used to specify the declaration of a security role reference in the web application’s code. The declaration of the element consists of the following elements:
- <description>:It is an optional element that specifies the information about the reference.
- <role-name>:It is used to specify the security role name used in the code.
- <role-link>: It specifies the value of the name of the security role that the user may be mapped into. This element is used to link a security role reference to a defined security role. This element must contain the name of one of the security roles defined in the security-role elements.
Responses to “What is the security-role-ref element?”