In this chapter you saw how realms provide a Web application with an authentication mechanism, as well as container-managed security. Many different types of realm implementations exist. You saw JDBC realms, JNDI realms, memory realms, and user database realms.