O'Reilly logo

Java EE 7 with GlassFish 4 Application Server by David R. Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Securing Java EE Applications

In this chapter, we will cover how to secure Java EE applications by taking advantage of GlassFish's built-in security features.

Java EE security relies on the Java Authentication and Authorization Service (JAAS) API. As we will see, securing Java EE applications requires very little coding for the most part. Securing an application is achieved by setting up users and security groups to a security realm in the application server and then configuring our applications to rely on a specific security realm for authentication and authorization.

Some of the topics we will cover in this chapter include:

  • Admin realms
  • File realms
  • Certificate realms
  • Creating self-signed security certificates
  • JDBC realms
  • Custom realms

Security ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required