public class PropertyFileLoginModule extends AbstractLoginModule
AbstractLoginModule.JAASUserInfo| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_filename |
private static java.util.concurrent.ConcurrentHashMap<java.lang.String,PropertyUserStore> |
_propertyUserStores |
private int |
_refreshInterval |
static java.lang.String |
DEFAULT_FILENAME |
private static Logger |
LOG |
| 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.
|
private void |
parseConfig(java.util.Map<java.lang.String,?> options) |
private void |
setupPropertyUserStore(java.util.Map<java.lang.String,?> options) |
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubjectpublic static final java.lang.String DEFAULT_FILENAME
private static final Logger LOG
private static java.util.concurrent.ConcurrentHashMap<java.lang.String,PropertyUserStore> _propertyUserStores
private int _refreshInterval
private java.lang.String _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)private void setupPropertyUserStore(java.util.Map<java.lang.String,?> options)
private void parseConfig(java.util.Map<java.lang.String,?> options)
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 information