public abstract class AbstractUsernameFormAuthenticator extends AbstractFormAuthenticator
Modifier and Type | Field and Description |
---|---|
static String |
ATTEMPTED_USERNAME |
static String |
REGISTRATION_FORM_ACTION |
Constructor and Description |
---|
AbstractUsernameFormAuthenticator() |
Modifier and Type | Method and Description |
---|---|
void |
action(AuthenticationFlowContext context)
Called from a form action invocation.
|
protected javax.ws.rs.core.Response |
challenge(AuthenticationFlowContext context,
String error) |
protected javax.ws.rs.core.Response |
challenge(AuthenticationFlowContext context,
String error,
String field) |
protected javax.ws.rs.core.Response |
createLoginForm(LoginFormsProvider form) |
protected void |
dummyHash(AuthenticationFlowContext context) |
boolean |
enabledUser(AuthenticationFlowContext context,
UserModel user) |
protected String |
getDefaultChallengeMessage(AuthenticationFlowContext context) |
protected boolean |
isTemporarilyDisabledByBruteForce(AuthenticationFlowContext context,
UserModel user) |
protected void |
runDefaultDummyHash(AuthenticationFlowContext context) |
protected javax.ws.rs.core.Response |
setDuplicateUserChallenge(AuthenticationFlowContext context,
String eventError,
String loginFormError,
AuthenticationFlowError authenticatorError) |
protected String |
tempDisabledError() |
protected String |
tempDisabledFieldError() |
void |
testInvalidUser(AuthenticationFlowContext context,
UserModel user) |
boolean |
validatePassword(AuthenticationFlowContext context,
UserModel user,
javax.ws.rs.core.MultivaluedMap<String,String> inputData) |
boolean |
validatePassword(AuthenticationFlowContext context,
UserModel user,
javax.ws.rs.core.MultivaluedMap<String,String> inputData,
boolean clearUser) |
boolean |
validateUser(AuthenticationFlowContext context,
javax.ws.rs.core.MultivaluedMap<String,String> inputData) |
boolean |
validateUserAndPassword(AuthenticationFlowContext context,
javax.ws.rs.core.MultivaluedMap<String,String> inputData) |
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areRequiredActionsEnabled, authenticate, configuredFor, getRequiredActions, requiresUser, setRequiredActions
public static final String REGISTRATION_FORM_ACTION
public static final String ATTEMPTED_USERNAME
public void action(AuthenticationFlowContext context)
Authenticator
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error)
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error, String field)
protected javax.ws.rs.core.Response createLoginForm(LoginFormsProvider form)
protected String tempDisabledError()
protected String tempDisabledFieldError()
protected javax.ws.rs.core.Response setDuplicateUserChallenge(AuthenticationFlowContext context, String eventError, String loginFormError, AuthenticationFlowError authenticatorError)
protected void runDefaultDummyHash(AuthenticationFlowContext context)
protected void dummyHash(AuthenticationFlowContext context)
public void testInvalidUser(AuthenticationFlowContext context, UserModel user)
public boolean enabledUser(AuthenticationFlowContext context, UserModel user)
public boolean validateUserAndPassword(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> inputData)
public boolean validateUser(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> inputData)
public boolean validatePassword(AuthenticationFlowContext context, UserModel user, javax.ws.rs.core.MultivaluedMap<String,String> inputData)
public boolean validatePassword(AuthenticationFlowContext context, UserModel user, javax.ws.rs.core.MultivaluedMap<String,String> inputData, boolean clearUser)
protected boolean isTemporarilyDisabledByBruteForce(AuthenticationFlowContext context, UserModel user)
protected String getDefaultChallengeMessage(AuthenticationFlowContext context)
Copyright © 2020 JBoss by Red Hat. All rights reserved.