public abstract class AbstractDatabaseLoginModule extends AbstractLoginModule
AbstractLoginModule.JAASUserInfo
Constructor and Description |
---|
AbstractDatabaseLoginModule() |
Modifier and Type | Method and Description |
---|---|
abstract Connection |
getConnection() |
UserInfo |
getUserInfo(String userName)
Load info from database
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject
public abstract Connection getConnection() throws Exception
Exception
- if unable to get the connectionpublic UserInfo getUserInfo(String userName) throws Exception
getUserInfo
in class AbstractLoginModule
userName
- user info to loadException
- if unable to get the user infopublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class AbstractLoginModule
subject
- 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)
Copyright © 1995-2015 Webtide. All Rights Reserved.