public class OTPFormAuthenticator extends AbstractUsernameFormAuthenticator implements Authenticator
| Modifier and Type | Field and Description |
|---|---|
static String |
TOTP_FORM_ACTION |
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION| Constructor and Description |
|---|
OTPFormAuthenticator() |
| 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,
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?
|
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
void |
validateOTP(AuthenticationFlowContext context) |
disabledUser, enabledUser, invalidCredentials, invalidUser, invalidUser, setDuplicateUserChallenge, temporarilyDisabledUser, validatePassword, validateUserAndPasswordpublic static final String TOTP_FORM_ACTION
public void action(AuthenticationFlowContext context)
Authenticatoraction in interface Authenticatoraction in class AbstractUsernameFormAuthenticatorpublic void authenticate(AuthenticationFlowContext context)
Authenticatorauthenticate in interface Authenticatorpublic void validateOTP(AuthenticationFlowContext context)
public boolean requiresUser()
AuthenticatorrequiresUser in interface Authenticatorprotected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error)
public 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 © 2016 JBoss by Red Hat. All rights reserved.