Security role references assembly settings

The Application Assembly Tool (AAT) can be used to both define the role-name and map them to the actual runtime roles in the environment with the role-link element.

Name
Specifies the name of a security role reference used in the application code.

For example, if the name is boss, then the AccountBean can make a decision based on whether the user executing a method is granted the role of a boss.

Data type String
Link
Specifies the name of a security role defined in the encompassing application.

The role reference will be linked to this name. For example, the AccountBean code uses a role named boss. The Account Bean is a part of an enterprise application, FinanceApp, that has a role named Manager. If the link specifies "Manager," then when the bean makes a call to isCallerInRole("boss"), the result will be true if and only if the user, who invoked the method, has been granted the FinanceApp's Manager role. The security role reference is the name used by an application component (module), and the link name is the name defined in the deployment descriptor of the encompassing application. The link maps the name used in the component to a corresponding name in the application.

Data type String
Description
Contains text describing the security role.
Data type String