public class BasicAuthAuthenticator extends AbstractUsernameFormAuthenticator implements Authenticator
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION| Constructor and Description |
|---|
BasicAuthAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(AuthenticationFlowContext context) |
void |
authenticate(AuthenticationFlowContext context) |
protected javax.ws.rs.core.Response |
challenge(AuthenticationFlowContext context,
String error) |
protected boolean |
checkUsernameAndPassword(AuthenticationFlowContext context,
String username,
String password) |
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user) |
protected String |
getAuthorizationHeader(AuthenticationFlowContext context) |
protected String[] |
getChallenge(String authorizationHeader) |
protected boolean |
onAuthenticate(AuthenticationFlowContext context,
String[] challenge) |
boolean |
requiresUser() |
protected javax.ws.rs.core.Response |
setDuplicateUserChallenge(AuthenticationFlowContext context,
String eventError,
String loginFormError,
AuthenticationFlowError authenticatorError) |
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user) |
createLoginForm, dummyHash, enabledUser, isTemporarilyDisabledByBruteForce, runDefaultDummyHash, tempDisabledError, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareRequiredActionsEnabled, getRequiredActionspublic boolean requiresUser()
requiresUser in interface Authenticatorpublic void authenticate(AuthenticationFlowContext context)
authenticate in interface Authenticatorprotected 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 AbstractUsernameFormAuthenticatorprotected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error)
challenge in class AbstractUsernameFormAuthenticatorpublic void action(AuthenticationFlowContext context)
action in interface Authenticatoraction in class AbstractUsernameFormAuthenticatorpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
configuredFor in interface Authenticatorpublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
setRequiredActions in interface Authenticatorpublic void close()
close in interface Providerclose in class AbstractFormAuthenticatorCopyright © 2019 JBoss by Red Hat. All rights reserved.