public class TomcatUserDatabaseLoginContext extends Object implements LoginModule
LoginContext
,
so hawtio can use that for its AuthenticationFilter
.Modifier and Type | Field and Description |
---|---|
static String |
OPTION_DIGEST_ALGORITHM |
static String |
OPTION_TOMCAT_USER_LOCATION |
Constructor and Description |
---|
TomcatUserDatabaseLoginContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort() |
boolean |
commit() |
protected String[] |
getUserPasswordRole(String username) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
protected boolean |
passwordsMatch(io.hawt.web.tomcat.TomcatUserDatabaseLoginContext.PasswordPair passwordPair) |
public static final String OPTION_DIGEST_ALGORITHM
public static final String OPTION_TOMCAT_USER_LOCATION
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
protected boolean passwordsMatch(io.hawt.web.tomcat.TomcatUserDatabaseLoginContext.PasswordPair passwordPair)
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
public boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
Copyright © 2018 JBoss by Red Hat. All rights reserved.