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, getUsernamePasswordFromCallBack
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
public boolean login() throws LoginException
LoginException
public boolean commit() throws LoginException
LoginException
public boolean abort() throws LoginException
LoginException
public boolean logout() throws LoginException
LoginException
Copyright © 2013. All Rights Reserved.