O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

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

Authentication with JAAS

As we develop any secure application, we must make certain that the user who is running the program is in fact the user we expected. This requires a login process. Almost every user interface requires a login process. If ever there was a process with code reuse potential, it is the login process. This point was not lost on JAAS designers.

JAAS authentication revolves around the LoginModule (javax.security.auth.spi.LoginModule). The LoginModule is a pluggable interface that provides the login services and completes the connection of the authentication process with the Subject. The implementation of the LoginModule is loaded by a LoginContext, which controls the login process. The LoginContext can optionally work with a ...

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