Book Image

Java EE 5 Development with NetBeans 6

Book Image

Java EE 5 Development with NetBeans 6

Overview of this book

Table of Contents (17 chapters)
Java EE 5 Development with NetBeans 6
Credits
About the Author
About the Reviewers
Preface
Identifying Performance Issues with NetBeans Profiler

Securing Web Applications


It is a common requirement to only allow certain users to access certain pages in a web application. Before a web application can be secured, a security realm needs to be set up in the application server where the application will be deployed. Security realms are essentially collections of users and security groups.

Each security realm allows the application server to obtain security information from some sort of permanent storage. This security information could be stored in a simple flat file, a relational database, an LDAP repository, or any other kind of persistent storage. Configuring the application server to obtain the security information from any kind of persistent storage allows us as application developers not to have to worry about the specific implementation. We simply configure our application to use a defined security realm for authentication.

Each user can belong to one or more security groups. Secured pages in a web application are only accessible...