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 org.eclipse.jetty.security.jaas.spi.AbstractLoginModule
AbstractLoginModule.JAASUser
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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".Methods inherited from class org.eclipse.jetty.security.jaas.spi.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:
initialize
in interfaceLoginModule
- Overrides:
initialize
in classAbstractLoginModule
- Parameters:
subject
- the subjectcallbackHandler
- the callback handlersharedState
- the shared state mapoptions
- the options map- See Also:
-
getUser
- Specified by:
getUser
in classAbstractLoginModule
- Parameters:
userName
- the user name- Throws:
Exception
- if unable to get the user information
-