The security-role-refType contains the declaration of a security role reference in a component's or a Deployment Component's code. The declaration consists of an optional description, the security role name used in the code, and an optional link to a security role. If the security role is not specified, the Deployer must choose an appropriate security role. |
QName | Type | Fixed | Default | Use | Inheritable | Annotation |
---|---|---|---|---|---|---|
id | xsd:ID | optional |
<xsd:complexType name="security-role-refType"> <xsd:annotation> <xsd:documentation>The security-role-refType contains the declaration of a security role reference in a component's or a Deployment Component's code. The declaration consists of an optional description, the security role name used in the code, and an optional link to a security role. If the security role is not specified, the Deployer must choose an appropriate security role.</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="role-name" type="javaee:role-nameType"> <xsd:annotation> <xsd:documentation>The value of the role-name element must be the String used as the parameter to the EJBContext.isCallerInRole(String roleName) method or the HttpServletRequest.isUserInRole(String role) method.</xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="role-link" type="javaee:role-nameType" minOccurs="0"> <xsd:annotation> <xsd:documentation>The role-link element is a reference to a defined security role. The role-link element must contain the name of one of the security roles defined in the security-role elements.</xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType> |