org.mortbay.jaas.spi
public class JDBCLoginModule extends Object implements LoginModule
JAAS LoginModule to retrieve user information from a database and authenticate the user.
This version uses plain old JDBC connections NOT Datasources.
Method Summary | |
---|---|
boolean | abort() Abort login |
boolean | commit() Commit the authenticated user |
void | initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) Init LoginModule.
|
void | loadUser(String userName) Load info from database |
boolean | login() Authenticate the user. |
boolean | logout() Logout authenticated user |
Returns:
Throws: LoginException
Returns:
Throws: LoginException
Parameters: subject callbackHandler sharedState options
Parameters: userName user info to load
Throws: SQLException
Returns:
Throws: LoginException
Returns:
Throws: LoginException