Java EE 8 Cookbook
上QQ阅读APP看书,第一时间看更新

Running your first Security API code 

Security is one of the top concerns when you build an enterprise application. Luckily, the Java EE platform now has this API that handles many of the enterprise requirements in a standardized way.

In this recipe, you will learn how to define roles and give them the right authorization based on rules defined in the methods that manage sensitive data.