public class DataSourceLoginModule extends AbstractDatabaseLoginModule
JDBCLoginModuleAbstractDatabaseLoginModule.JDBCUserInfoAbstractLoginModule.JAASUserInfo| Constructor and Description |
|---|
DataSourceLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Get a connection from the DataSource
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Init LoginModule.
|
getRoles, getUserInfoabort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubjectpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
Called once by JAAS after new instance created.
initialize in interface LoginModuleinitialize in class AbstractDatabaseLoginModulesubject - the subjectcallbackHandler - the callback handlersharedState - the shared state mapoptions - the option mapLoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)public Connection getConnection() throws Exception
getConnection in class AbstractDatabaseLoginModuleException - if unable to get the connectionAbstractDatabaseLoginModule.getConnection()Copyright © 1995–2017 Webtide. All rights reserved.