Protecting Access to the Application in the JSP

Use

In the first part of this tutorial, you will protect access to the application by specifying access protection in the JSP.

Procedure

You will perform the following steps:

...

       1.      Require authentication for access to the JSP application. In this way, you obtain the user’s ID to use for the authorization check.

       2.      Specify the policy domain that uses the authentication.

       3.      Create the J2EE security role AccessQuickCarRental. This role will protect access to the application.

       4.      Create a security constraint that specifies which set of resources are to be protected with this security role.

Next Step:

Specifying Authentication in the JSP