public class UsernamePasswordForm extends AbstractUsernameFormAuthenticator implements Authenticator
Modifier and Type | Field and Description |
---|---|
protected static ServicesLogger |
log |
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION
Constructor and Description |
---|
UsernamePasswordForm() |
Modifier and Type | Method and Description |
---|---|
void |
action(AuthenticationFlowContext context)
Called from a form action invocation.
|
void |
authenticate(AuthenticationFlowContext context)
Initial call for the authenticator.
|
protected javax.ws.rs.core.Response |
challenge(AuthenticationFlowContext context,
javax.ws.rs.core.MultivaluedMap<String,String> formData) |
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this authenticator configured for this user.
|
boolean |
requiresUser()
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?
|
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
protected boolean |
validateForm(AuthenticationFlowContext context,
javax.ws.rs.core.MultivaluedMap<String,String> formData) |
challenge, challenge, createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPassword
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areRequiredActionsEnabled, getRequiredActions
protected static ServicesLogger log
public void action(AuthenticationFlowContext context)
Authenticator
action
in interface Authenticator
action
in class AbstractUsernameFormAuthenticator
protected boolean validateForm(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)
public void authenticate(AuthenticationFlowContext context)
Authenticator
authenticate
in interface Authenticator
public boolean requiresUser()
Authenticator
requiresUser
in interface Authenticator
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)
public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
Authenticator
configuredFor
in interface Authenticator
public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
Authenticator
setRequiredActions
in interface Authenticator
public void close()
close
in interface Provider
close
in class AbstractFormAuthenticator
Copyright © 2021 JBoss by Red Hat. All rights reserved.