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:
Authenticator,CredentialValidator<OTPCredentialProvider>,Provider
public class BasicAuthOTPAuthenticator extends BasicAuthAuthenticator implements Authenticator, 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 booleanconfiguredFor(KeycloakSession session, RealmModel realm, UserModel user)Is this authenticator configured for this user.OTPCredentialProvidergetCredentialProvider(KeycloakSession session)protected booleanonAuthenticate(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
-
Methods inherited from interface org.keycloak.authentication.CredentialValidator
getCredentials, getType
-
-
-
-
Method Detail
-
onAuthenticate
protected boolean onAuthenticate(AuthenticationFlowContext context, String[] challenge)
- Overrides:
onAuthenticatein classBasicAuthAuthenticator
-
configuredFor
public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
Description copied from interface:AuthenticatorIs this authenticator configured for this user.- Specified by:
configuredForin interfaceAuthenticator- Overrides:
configuredForin classBasicAuthAuthenticator- Returns:
-
getCredentialProvider
public OTPCredentialProvider getCredentialProvider(KeycloakSession session)
- Specified by:
getCredentialProviderin interfaceCredentialValidator<OTPCredentialProvider>
-
-