Role-Based Security
One of the challenges you often face in developing a distributed, multi-user application is how to handle security.
The authentication mechanism in the J2EE specification uses a technique called role-based security. The idea is that rather than restricting resources at the user level, you create groups of users called roles and restrict the resources by role. A single user can have more than one role. For example, a company might have employees and contractors, so you might have an application that permits different operations depending on whether you are an employee or a contractor. You might also have a manager role. If a contractor happens to be a manager, he would have two roles—contractor and manager.
There are no predefined ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access