Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
So far, we have learned about the basics of Tomcat architecture, and how to run servlets and JSP pages in Tomcat. In this chapter, we cover some of the methods that Tomcat provides for protecting resources. First, we talk about using security realms to protect a resource. Then, we move on to the common security realms used with Tomcat. Finally, we cover the basics of Tomcat container security using BASIC and FORM-based authentication.
In this chapter, we will
MemoryRealm and UserDatabaseRealm and their usage with BASIC authenticationJDBCRealm and DataSourceRealm and their usage with FORM-based authenticationJNDIRealm