| This Chapter | |
| - | Chapter 13: Securing Struts Applications |
| - | Principals and Roles |
| - | Writing Security Policy |
| - | Authentication Methods |
| - | Hiding Resources |
| - | Struts Security Configuration |
| - | Programmatic Security |
| - | Summary |
In this chapter, you have learned how to configure the deployment descriptor to restrict access to some or all of the resources in your servlet applications. The configuration means that you need only to modify your deployment descriptor file—no programming is necessary. In addition, you have also learned how to use the roles attribute in the action elements in your Struts configuration file.
Writing Java code to secure Web applications is also possible through the following methods of the javax.servlet.http.HttpServletRequest interface: getRemoteUser, getPrincipal, getAuthType, and isUserInRole.