Class JDBCLoginModule
java.lang.Object
org.eclipse.jetty.security.jaas.spi.AbstractLoginModule
org.eclipse.jetty.security.jaas.spi.AbstractDatabaseLoginModule
org.eclipse.jetty.security.jaas.spi.JDBCLoginModule
- All Implemented Interfaces:
 LoginModule
JAAS LoginModule to retrieve user information from a database and authenticate the user.
Notes
This version uses plain old JDBC connections NOT DataSources.
- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDatabaseLoginModule
AbstractDatabaseLoginModule.JDBCUserNested classes/interfaces inherited from class AbstractLoginModule
AbstractLoginModule.JAASUser - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGet a connection from the DriverManagervoidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Init LoginModule.Methods inherited from class AbstractDatabaseLoginModule
getRoles, getUserMethods inherited from class AbstractLoginModule
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject 
- 
Constructor Details
- 
JDBCLoginModule
public JDBCLoginModule() 
 - 
 - 
Method Details
- 
getConnection
Get a connection from the DriverManager- Specified by:
 getConnectionin classAbstractDatabaseLoginModule- Returns:
 - the connection for this datasource
 - Throws:
 Exception- if unable to get the connection
 - 
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Init LoginModule.Called once by JAAS after new instance created.
- Specified by:
 initializein interfaceLoginModule- Overrides:
 initializein classAbstractDatabaseLoginModule- Parameters:
 subject- the subjectcallbackHandler- the callback handlersharedState- the shared state mapoptions- the options map- See Also:
 
 
 -