This tutorial will show a simple example of JAAS authentication using a Login Module that we create and a Callback Handler to communicate with the Login .