Class BasicAuthOTPAuthenticator
- java.lang.Object
-
- org.keycloak.authentication.AbstractFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
-
- org.keycloak.authentication.authenticators.challenge.BasicAuthAuthenticator
-
- org.keycloak.authentication.authenticators.challenge.BasicAuthOTPAuthenticator
-
- All Implemented Interfaces:
org.keycloak.authentication.Authenticator
,org.keycloak.authentication.CredentialValidator<OTPCredentialProvider>
,org.keycloak.provider.Provider
public class BasicAuthOTPAuthenticator extends BasicAuthAuthenticator implements org.keycloak.authentication.Authenticator, org.keycloak.authentication.CredentialValidator<OTPCredentialProvider>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
-
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 BasicAuthOTPAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configuredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
OTPCredentialProvider
getCredentialProvider(org.keycloak.models.KeycloakSession session)
protected boolean
onAuthenticate(org.keycloak.authentication.AuthenticationFlowContext context, String[] challenge)
-
Methods inherited from class org.keycloak.authentication.authenticators.challenge.BasicAuthAuthenticator
action, authenticate, challenge, challenge, checkUsernameAndPassword, close, getAuthorizationHeader, getChallenge, requiresUser, setDuplicateUserChallenge, setRequiredActions
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, isUserAlreadySetBeforeUsernamePasswordAuth, runDefaultDummyHash, testInvalidUser, validatePassword, validateUser, validateUserAndPassword
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.authentication.Authenticator
action, areRequiredActionsEnabled, authenticate, getRequiredActions, requiresUser, setRequiredActions
-
-
-
-
Method Detail
-
onAuthenticate
protected boolean onAuthenticate(org.keycloak.authentication.AuthenticationFlowContext context, String[] challenge)
- Overrides:
onAuthenticate
in classBasicAuthAuthenticator
-
configuredFor
public boolean configuredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
- Specified by:
configuredFor
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
configuredFor
in classBasicAuthAuthenticator
-
getCredentialProvider
public OTPCredentialProvider getCredentialProvider(org.keycloak.models.KeycloakSession session)
- Specified by:
getCredentialProvider
in interfaceorg.keycloak.authentication.CredentialValidator<OTPCredentialProvider>
-
-