Software AG Infrasructure 10.7 | Setting Up Security | Developing a JAAS Client
 
Developing a JAAS Client
Create the login context. Below is an example of how to authenticate a user. In this case, you must instantiate a LoginContext, where configuration_entry is the name used as the index into the JAAS configuration file:
import javax.security.auth.login.LoginContext;. . .LoginContext
loginContext = new LoginContext(configuration_entry_name,
CallbackHandler_to_be_used_for_user_interaction);