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.AbstractUsernameFormAuthenticatorATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION, USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description BasicAuthOTPAuthenticator()
 - 
Method SummaryAll 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.BasicAuthAuthenticatoraction, authenticate, challenge, challenge, checkUsernameAndPassword, close, getAuthorizationHeader, getChallenge, requiresUser, setDuplicateUserChallenge, setRequiredActions
 - 
Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticatorcreateLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, isUserAlreadySetBeforeUsernamePasswordAuth, runDefaultDummyHash, testInvalidUser, validatePassword, validateUser, validateUserAndPassword
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.authentication.Authenticatoraction, areRequiredActionsEnabled, authenticate, getRequiredActions, requiresUser, setRequiredActions
 - 
Methods inherited from interface org.keycloak.authentication.CredentialValidatorgetCredentials, getType
 
- 
 
- 
- 
- 
Method Detail- 
onAuthenticateprotected boolean onAuthenticate(AuthenticationFlowContext context, String[] challenge) - Overrides:
- onAuthenticatein class- BasicAuthAuthenticator
 
 - 
configuredForpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user) Description copied from interface:AuthenticatorIs this authenticator configured for this user.- Specified by:
- configuredForin interface- Authenticator
- Overrides:
- configuredForin class- BasicAuthAuthenticator
- Returns:
 
 - 
getCredentialProviderpublic OTPCredentialProvider getCredentialProvider(KeycloakSession session) - Specified by:
- getCredentialProviderin interface- CredentialValidator<OTPCredentialProvider>
 
 
- 
 
-