public class ConsoleUsernamePasswordAuthenticator extends AbstractUsernameFormAuthenticator implements Authenticator
| Modifier and Type | Field and Description |
|---|---|
static ConsoleUsernamePasswordAuthenticator |
SINGLETON |
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION| Constructor and Description |
|---|
ConsoleUsernamePasswordAuthenticator() |
| 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 ConsoleDisplayMode |
challenge(AuthenticationFlowContext context) |
protected javax.ws.rs.core.Response |
challenge(AuthenticationFlowContext context,
String error) |
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?
|
protected javax.ws.rs.core.Response |
setDuplicateUserChallenge(AuthenticationFlowContext context,
String eventError,
String loginFormError,
AuthenticationFlowError authenticatorError) |
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
challenge, createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, runDefaultDummyHash, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareRequiredActionsEnabled, getRequiredActionspublic static final ConsoleUsernamePasswordAuthenticator SINGLETON
public ConsoleUsernamePasswordAuthenticator()
public boolean requiresUser()
AuthenticatorrequiresUser in interface Authenticatorprotected ConsoleDisplayMode challenge(AuthenticationFlowContext context)
public void authenticate(AuthenticationFlowContext context)
Authenticatorauthenticate in interface Authenticatorprotected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error)
challenge in class AbstractUsernameFormAuthenticatorprotected javax.ws.rs.core.Response setDuplicateUserChallenge(AuthenticationFlowContext context, String eventError, String loginFormError, AuthenticationFlowError authenticatorError)
setDuplicateUserChallenge in class AbstractUsernameFormAuthenticatorpublic void action(AuthenticationFlowContext context)
Authenticatoraction in interface Authenticatoraction in class AbstractUsernameFormAuthenticatorpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
AuthenticatorconfiguredFor in interface Authenticatorpublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
AuthenticatorsetRequiredActions in interface Authenticatorpublic void close()
close in interface Providerclose in class AbstractFormAuthenticatorCopyright © 2021 JBoss by Red Hat. All rights reserved.