Class PropertyFileLoginModule
java.lang.Object
org.eclipse.jetty.security.jaas.spi.AbstractLoginModule
org.eclipse.jetty.security.jaas.spi.PropertyFileLoginModule
- All Implemented Interfaces:
LoginModule
PropertyFileLoginModule
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLoginModule
AbstractLoginModule.JAASUser -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Use a PropertyUserStore to read the authentication and authorizaton information contained in the file named by the option "file".Methods inherited from class AbstractLoginModule
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, isIgnored, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject
-
Field Details
-
DEFAULT_FILENAME
- See Also:
-
-
Constructor Details
-
PropertyFileLoginModule
public PropertyFileLoginModule()
-
-
Method Details
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Use a PropertyUserStore to read the authentication and authorizaton information contained in the file named by the option "file".- Specified by:
initializein interfaceLoginModule- Overrides:
initializein classAbstractLoginModule- Parameters:
subject- the subjectcallbackHandler- the callback handlersharedState- the shared state mapoptions- the options map- See Also:
-
getUser
- Specified by:
getUserin classAbstractLoginModule- Parameters:
userName- the user name- Throws:
Exception- if unable to get the user information
-