public class UserDatabaseLoginModule extends AbstractLoginModule
 Logs in a user based on a username, password, and static password file
 location. This module must be used with a CallbackHandler (such as
 WikiCallbackHandler) that supports the following Callback types:
 
NameCallback- supplies the
 usernamePasswordCallback- supplies the
 passwordUserDatabaseCallback- supplies the
 UserDatabaseAfter authentication, a Principals based on the login name will be created and associated with the Subject.
m_handler, m_options, m_principals, m_state, m_subject, NULL| Constructor and Description | 
|---|
| UserDatabaseLoginModule() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | login()Logs in the user by calling back to the registered CallbackHandler with a
 series of callbacks. | 
abort, commit, initialize, logoutpublic UserDatabaseLoginModule()
public boolean login() throws LoginException
AbstractLoginModuletruelogin in interface LoginModulelogin in class AbstractLoginModuletrue if the commit succeeded, or
         false if this LoginModule should be ignored.LoginException - if the authentication fails{@inheritDoc}Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.