O'Reilly logo

GlassFish Security by Masoud Kalali

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

Adding a custom authentication method to GlassFish

In Chapter 1 we discussed HTTP BASIC Authentication and Form-Based Authentication among other authentication methods supported by the GlassFish application server. We learned that they are quite capable of addressing authentication requirements of all normal enterprise applications. GlassFish supports JSR 196 (Java Authentication Service Provider Interface for Containers), which let us plug any Server Authentication Module (SAM) implemented according to JSR 196 into the GlassFish Servlet container.

The JSR 196 specification makes it possible for the Servlet container to use the plugged SAM without requiring to change the application security declaration included in the web.xml file or added as ...

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