public class BasicAuthAuthenticator extends AbstractUsernameFormAuthenticator implements Authenticator
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION
Constructor and Description |
---|
BasicAuthAuthenticator() |
createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, runDefaultDummyHash, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPassword
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areRequiredActionsEnabled, getRequiredActions
public boolean requiresUser()
requiresUser
in interface Authenticator
public void authenticate(AuthenticationFlowContext context)
authenticate
in interface Authenticator
protected boolean onAuthenticate(AuthenticationFlowContext context, String[] challenge)
protected String getAuthorizationHeader(AuthenticationFlowContext context)
protected boolean checkUsernameAndPassword(AuthenticationFlowContext context, String username, String password)
protected javax.ws.rs.core.Response setDuplicateUserChallenge(AuthenticationFlowContext context, String eventError, String loginFormError, AuthenticationFlowError authenticatorError)
setDuplicateUserChallenge
in class AbstractUsernameFormAuthenticator
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error)
challenge
in class AbstractUsernameFormAuthenticator
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error, String field)
challenge
in class AbstractUsernameFormAuthenticator
public void action(AuthenticationFlowContext context)
action
in interface Authenticator
action
in class AbstractUsernameFormAuthenticator
public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
configuredFor
in interface Authenticator
public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
setRequiredActions
in interface Authenticator
public void close()
close
in interface Provider
close
in class AbstractFormAuthenticator
Copyright © 2021 JBoss by Red Hat. All rights reserved.