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 LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionprotected boolean passwordsMatch(io.hawt.web.tomcat.TomcatUserDatabaseLoginContext.PasswordPair passwordPair)
public boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.