public class PropertiesUsernameRolesLoginModule extends AbstractLoginModule
A login module which uses properties files for validating users and for amending authenticated users with appropriate roles.
The properties file which will be used for user credential validation can be
specified via the users.properties option and defaults to
$THERMOSTAT_HOME/thermostat-users.properties if no such option
has been specified. Mappings for users to roles come from a file as specified
by the roles.properties option and defaults to
$THERMOSTAT_HOME/thermostat-roles.properties if no such option
has been provided.
callBackHandler| Constructor and Description |
|---|
PropertiesUsernameRolesLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
getUsernameFromCallBack, getUsernamePasswordFromCallBackpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
public boolean login()
throws LoginException
LoginExceptionpublic boolean commit()
throws LoginException
LoginExceptionpublic boolean abort()
throws LoginException
LoginExceptionpublic boolean logout()
throws LoginException
LoginExceptionCopyright © 2013. All Rights Reserved.