O'Reilly logo

Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications by Mick Knutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authorization in Java EE

In this recipe, we will look into how we can use Java EE built-in features to enable authorization or access control. It basically means we specify which roles are allowed to access a resource or set of resources, and how these roles can be mapped to actual users in the security realm.

Getting ready

In this recipe, we will continue working on the same sample application we worked on in the previous recipe. In case you skipped the previous step, it may be helpful to review the previous recipe to familiarize yourself with the application structure.

How to do it...

Enabling authorization has two steps: the first step is to specify the restricted resources and the roles that are able to access these resources, and the second ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required