Class ConsoleOTPFormAuthenticator
- java.lang.Object
-
- org.keycloak.authentication.AbstractFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.OTPFormAuthenticator
-
- org.keycloak.authentication.authenticators.console.ConsoleOTPFormAuthenticator
-
- All Implemented Interfaces:
org.keycloak.authentication.Authenticator
,org.keycloak.authentication.CredentialValidator<OTPCredentialProvider>
,org.keycloak.provider.Provider
public class ConsoleOTPFormAuthenticator extends OTPFormAuthenticator implements org.keycloak.authentication.Authenticator
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static ConsoleOTPFormAuthenticator
SINGLETON
-
Fields inherited from class org.keycloak.authentication.authenticators.browser.OTPFormAuthenticator
SELECTED_OTP_CREDENTIAL_ID, UNNAMED
-
Fields inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION, USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
-
-
Constructor Summary
Constructors Constructor Description ConsoleOTPFormAuthenticator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action(org.keycloak.authentication.AuthenticationFlowContext context)
void
authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
protected org.keycloak.authentication.ConsoleDisplayMode
challenge(org.keycloak.authentication.AuthenticationFlowContext context)
protected javax.ws.rs.core.Response
challenge(org.keycloak.authentication.AuthenticationFlowContext context, String msg)
void
close()
static URI
getCallbackUrl(org.keycloak.authentication.AuthenticationFlowContext context)
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.OTPFormAuthenticator
configuredFor, createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, getCredentialProvider, getRequiredActions, requiresUser, setRequiredActions, validateOTP
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
challenge, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, isUserAlreadySetBeforeUsernamePasswordAuth, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validateUser, validateUserAndPassword
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
SINGLETON
public static final ConsoleOTPFormAuthenticator SINGLETON
-
-
Method Detail
-
getCallbackUrl
public static URI getCallbackUrl(org.keycloak.authentication.AuthenticationFlowContext context)
-
challenge
protected org.keycloak.authentication.ConsoleDisplayMode challenge(org.keycloak.authentication.AuthenticationFlowContext context)
-
action
public void action(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
action
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
action
in classOTPFormAuthenticator
-
authenticate
public void authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
authenticate
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
authenticate
in classOTPFormAuthenticator
-
challenge
protected javax.ws.rs.core.Response challenge(org.keycloak.authentication.AuthenticationFlowContext context, String msg)
- Overrides:
challenge
in classAbstractUsernameFormAuthenticator
-
close
public void close()
- Specified by:
close
in interfaceorg.keycloak.provider.Provider
- Overrides:
close
in classOTPFormAuthenticator
-
-