org.eclipse.jetty.plus.jaas.spi
Class JDBCLoginModule
java.lang.Object
org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule
org.eclipse.jetty.plus.jaas.spi.AbstractDatabaseLoginModule
org.eclipse.jetty.plus.jaas.spi.JDBCLoginModule
- All Implemented Interfaces:
- LoginModule
public class JDBCLoginModule
- extends AbstractDatabaseLoginModule
JDBCLoginModule
JAAS LoginModule to retrieve user information from
a database and authenticate the user.
Notes
This version uses plain old JDBC connections NOT
Datasources.
Usage
Methods inherited from class org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule |
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCLoginModule
public JDBCLoginModule()
getConnection
public Connection getConnection()
throws Exception
- Get a connection from the DriverManager
- Specified by:
getConnection
in class AbstractDatabaseLoginModule
- Returns:
-
- Throws:
Exception
- See Also:
org.eclipse.jetty.server.server.plus.jaas.spi.AbstractDatabaseLoginModule#getConnection()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
- Init LoginModule.
Called once by JAAS after new instance created.
- Specified by:
initialize
in interface LoginModule
- Overrides:
initialize
in class AbstractDatabaseLoginModule
- Parameters:
subject
- callbackHandler
- sharedState
- options
- - See Also:
LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.