-->
edocs Home > Oracle WebLogic Server Documentation > Administration Console Online Help > Manage security for WebManage security for Web applications and EJBs
WebLogic Server offers a choice of models for securing each Web application or EJB. You choose a model when you deploy the Web application or EJB, and your choice is immutable for the life time of the deployment. To change the model, delete the Web application or EJB and re-install it.
Note: If you are implementing security using JACC (Java Authorization Contract for Containers as defined in JSR 115), use the DD Only security model. Other WebLogic Server models are not available and the security functions for Web applications and EJBs in the Administration Console are disabled. See Using the Java Authorization Contract for Containers.
To manage security for Web applications and EJBs, do one of the following:
- (DDOnly model) To use only roles and policies that are defined in the Web application or EJB's deployment descriptors:
Use the Install Application Assistant to deploy the Web application or EJB. When the assistant prompts you to choose a security model, select DDOnly.
See Install a Web application or Install Stand-Alone EJBs.
- (CustomRoles model) To use policies from the deployment descriptors and use role mappings that you define in the Administration Console:
- Use the Install Application Assistant to deploy the Web application or EJB. When the assistant prompts you to choose a security model, select CustomRoles.
See Install a Web application or Install Stand-Alone EJBs.
- View the list of roles that are used in the module's policies:
- After you deploy the module, activate your changes. See Use the Change Center.
- View the Policy Conditions page for each policy in the module.
The Policy Conditions page states which role can access the protected resource. See Create policies for resource instances.
- For each role that is named in the module's policies, create a global role or a scoped role.
- (CustomRolesAndPolicies model) To use only the roles and policies that you define in the Administration Console:
- Use the Install Application Assistant to deploy the Web application or EJB. When the assistant prompts you to choose a security model, select CustomRolesAndPolicies.
See Install a Web application or Install Stand-Alone EJBs.
- Define roles and policies.
See:- (Advanced model) To import security information from deployment descriptors on an initial deployment and then use the Administration Console to modify, remove, or add to these roles and polices:
- Import security data from deployment descriptors
- Verify imported roles and Verify imported policies
- Stop importing roles and policies
- (Advanced model) To re-import security data from modules that you have already deployed and already imported security data, Oracle recommends that you delete the module and then reinstall it. Deleting the module ensures that all related security data is also deleted. If you do not delete the module, you risk introducing inconsistent security data. To re-import security data:
- Delete the Web application or EJB:
- Import security data from deployment descriptors.
- Verify imported roles and Verify imported policies
- Stop importing roles and policies.
Related Tasks
Related Topics
} } (document.images){ dcs_imgarray[dcs_ptr] = new Image; dcs_imgarray[dcs_ptr].src = dcs_src; WT[myMeta.name.substring(3)]=myMeta.content; } if DCSext[myMeta.name.substring(7)]=myMeta.content; } } } } for (N in DCS){P+=A( N, DCS[N]);} for (N in WT){P+=A( "WT."+N, WT[N]);} for (N in DCSext){P+=A( N, DCSext[N]);} //} aCrumb=aCookie[i].split("="); if (crumb==aCrumb[0]){ return aCrumb[1]; } } return null; } i=0;i