public class PropertyFileLoginModule extends AbstractLoginModule
AbstractLoginModule.JAASUserInfo| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILENAME |
static Map |
fileMap |
| Constructor and Description |
|---|
PropertyFileLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
UserInfo |
getUserInfo(String username)
Don't implement this as we want to pre-fetch all of the
users.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Read contents of the configured property file.
|
void |
loadProperties(String filename) |
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubjectpublic static final String DEFAULT_FILENAME
public static final Map fileMap
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize in interface LoginModuleinitialize in class AbstractLoginModulesubject - callbackHandler - sharedState - options - LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)public void loadProperties(String filename)
public UserInfo getUserInfo(String username) throws Exception
getUserInfo in class AbstractLoginModuleusername - Exceptionorg.mortbay.jetty.plus.jaas.spi.AbstractLoginModule#lazyLoadUser(java.lang.String)Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.