public class OTPFormAuthenticator extends AbstractUsernameFormAuthenticator implements Authenticator, CredentialValidator<OTPCredentialProvider>
| Modifier and Type | Field and Description |
|---|---|
static String |
SELECTED_OTP_CREDENTIAL_ID |
static String |
UNNAMED |
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION| Constructor and Description |
|---|
OTPFormAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(AuthenticationFlowContext context) |
void |
authenticate(AuthenticationFlowContext context) |
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user) |
protected javax.ws.rs.core.Response |
createLoginForm(LoginFormsProvider form) |
OTPCredentialProvider |
getCredentialProvider(KeycloakSession session) |
List<RequiredActionFactory> |
getRequiredActions(KeycloakSession session) |
boolean |
requiresUser() |
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user) |
protected String |
tempDisabledError() |
void |
validateOTP(AuthenticationFlowContext context) |
challenge, dummyHash, enabledUser, getDefaultChallengeMessage, isTemporarilyDisabledByBruteForce, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareRequiredActionsEnabledgetCredentials, getTypepublic static final String SELECTED_OTP_CREDENTIAL_ID
public static final String UNNAMED
public void action(AuthenticationFlowContext context)
action in interface Authenticatoraction in class AbstractUsernameFormAuthenticatorpublic void authenticate(AuthenticationFlowContext context)
authenticate in interface Authenticatorpublic void validateOTP(AuthenticationFlowContext context)
public boolean requiresUser()
requiresUser in interface Authenticatorprotected String tempDisabledError()
tempDisabledError in class AbstractUsernameFormAuthenticatorprotected javax.ws.rs.core.Response createLoginForm(LoginFormsProvider form)
createLoginForm in class AbstractUsernameFormAuthenticatorpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
configuredFor in interface Authenticatorpublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
setRequiredActions in interface Authenticatorpublic List<RequiredActionFactory> getRequiredActions(KeycloakSession session)
getRequiredActions in interface Authenticatorpublic void close()
close in interface Providerclose in class AbstractFormAuthenticatorpublic OTPCredentialProvider getCredentialProvider(KeycloakSession session)
getCredentialProvider in interface CredentialValidator<OTPCredentialProvider>Copyright © 2020 JBoss by Red Hat. All rights reserved.