Implementing portable security in JEE 8

We will modify CourseManagementMavenWebApp from Chapter 7, Creating JEE Applications with EJB, in this section. This project was part of the EJB CourseManagementMavenEAR project, but in this section, we will work with CourseManagementMavenWebApp independently. Copy the CourseManagementMavenWebApp project from Chapter07, as CourseManagementMavenWebApp-jee8 in the Eclipse workspace for this chapter.

We will modify this project to provide the following functionality:

  • AdminServlet is a protected servlet requiring login. We will implement the basic authentication
  • There are three possible user roles: admin, manager, and user
  • Only users in the admin role can see the admin page, served by AdminServlet
  • Only ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.