Package org.eclipse.jetty.jaas.spi
Class PropertyFileLoginModule
- java.lang.Object
-
- org.eclipse.jetty.jaas.spi.AbstractLoginModule
-
- org.eclipse.jetty.jaas.spi.PropertyFileLoginModule
-
- All Implemented Interfaces:
LoginModule
public class PropertyFileLoginModule extends AbstractLoginModule
PropertyFileLoginModule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.jaas.spi.AbstractLoginModule
AbstractLoginModule.JAASUserInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FILENAME
-
Constructor Summary
Constructors Constructor Description PropertyFileLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfogetUserInfo(String userName)voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)Read contents of the configured property file.-
Methods inherited from class org.eclipse.jetty.jaas.spi.AbstractLoginModule
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject
-
-
-
-
Field Detail
-
DEFAULT_FILENAME
public static final String DEFAULT_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
Read contents of the configured property file.- Specified by:
initializein interfaceLoginModule- Overrides:
initializein classAbstractLoginModule- Parameters:
subject- the subjectcallbackHandler- the callback handlersharedState- the shared state mapoptions- the options map- See Also:
LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
-
getUserInfo
public UserInfo getUserInfo(String userName) throws Exception
- Specified by:
getUserInfoin classAbstractLoginModule- Parameters:
userName- the user name- Throws:
Exception- if unable to get the user information
-
-