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
UserDatabase
After authentication, a Principals based on the login name will be created and associated with the Subject.
m_handler, m_options, m_previousWikiPrincipals, m_principals, m_principalsToOverwrite, m_principalsToRemove, 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, logout
public boolean login() throws javax.security.auth.login.LoginException
AbstractLoginModule
true
login
in interface javax.security.auth.spi.LoginModule
login
in class AbstractLoginModule
true
if the commit succeeded, or
false
if this LoginModule should be ignored.javax.security.auth.login.LoginException
- if the authentication fails{@inheritDoc}
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.