public class PropertyFileLoginModule extends AbstractLoginModule
AbstractLoginModule.JAASUserInfo| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_FILENAME |
| Constructor and Description |
|---|
PropertyFileLoginModule() |
| Modifier and Type | Method and 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, setSubjectpublic 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 interface javax.security.auth.spi.LoginModuleinitialize in class AbstractLoginModulesubject - 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 AbstractLoginModuleuserName - the user namejava.lang.Exception - if unable to get the user informationCopyright © 1995–2022 Webtide. All rights reserved.