org.mortbay.jetty.plus.jaas.spi
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, setSubject
public static final String DEFAULT_FILENAME
public static final Map fileMap
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize
in interface LoginModule
initialize
in class AbstractLoginModule
subject
- 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 AbstractLoginModule
username
- Exception
org.mortbay.jetty.plus.jaas.spi.AbstractLoginModule#lazyLoadUser(java.lang.String)
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.