public class PropertyFileLoginModule extends AbstractLoginModule
AbstractLoginModule.JAASUserInfo
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DEFAULT_FILENAME |
Constructor | Description |
---|---|
PropertyFileLoginModule() |
Modifier and Type | Method | Description |
---|---|---|
UserInfo |
getUserInfo(java.lang.String userName) |
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.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 java.lang.String DEFAULT_FILENAME
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map<java.lang.String,?> sharedState, java.util.Map<java.lang.String,?> options)
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(java.lang.String userName) throws java.lang.Exception
getUserInfo
in class AbstractLoginModule
userName
- the user namejava.lang.Exception
- if unable to get the user informationCopyright © 1995–2018 Webtide. All rights reserved.