Class PropertyFileLoginModule
java.lang.Object
org.eclipse.jetty.jaas.spi.AbstractLoginModule
org.eclipse.jetty.jaas.spi.PropertyFileLoginModule
- All Implemented Interfaces:
LoginModule
PropertyFileLoginModule
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLoginModule
AbstractLoginModule.JAASUserInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyUserStorestatic final Stringprivate static final Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserInfo(String userName) voidinitialize(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".private voidsetupPropertyUserStore(Map<String, ?> options) Get an existing, or create a new PropertyUserStore to read the authentication and authorization information from 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:
-
LOG
-
_store
-
-
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:
-
setupPropertyUserStore
-
getUserInfo
- Specified by:
getUserInfoin classAbstractLoginModule- Parameters:
userName- the user name- Throws:
Exception- if unable to get the user information
-