public class PropertyFileLoginModule extends AbstractLoginModule
AbstractLoginModule.JAASUserInfo
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FILENAME |
Constructor and Description |
---|
PropertyFileLoginModule() |
Modifier and Type | Method and Description |
---|---|
UserInfo |
getUserInfo(String userName) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Read contents of the configured property file.
|
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject
public static final String DEFAULT_FILENAME
public 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 options mapLoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map,
java.util.Map)
public UserInfo getUserInfo(String userName) throws Exception
getUserInfo
in class AbstractLoginModule
userName
- the user nameException
- if unable to get the user informationCopyright © 1995-2016 Webtide. All Rights Reserved.