Murach's Java Servlets and JSP

This chapter shows how to use container-managed authentication to create a security constraint that restricts access to part of a web site, and it shows how to use authentication to allow selected users to access that part of the web site.

Chapter 14 How to restrict access to a web resource
An introduction to authentication 418
How container-managed authentication works 418
Three types of authentication 420
How to restrict access to web resources 422
How to create a security constraint 422
How to implement the JDBC realm 424
How to create the tables for the JDBC realm 426
How to use basic authentication 428
The login dialog box 428
The XML tags 428
How to use form-based authentication 430
The login page 430
The XML tags 430
The code for the login page 432
t




Murach's Java Servlets and JSP

Learn more about this book

Add this book to your cart