public class PasswordForm extends UsernamePasswordForm implements CredentialValidator<PasswordCredentialProvider>
log
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION
Constructor and Description |
---|
PasswordForm() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(AuthenticationFlowContext context)
Initial call for the authenticator.
|
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this authenticator configured for this user.
|
protected javax.ws.rs.core.Response |
createLoginForm(LoginFormsProvider form) |
PasswordCredentialProvider |
getCredentialProvider(KeycloakSession session) |
protected String |
getDefaultChallengeMessage(AuthenticationFlowContext context) |
boolean |
requiresUser()
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?
|
protected boolean |
validateForm(AuthenticationFlowContext context,
javax.ws.rs.core.MultivaluedMap<String,String> formData) |
action, challenge, close, setRequiredActions
challenge, challenge, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, isDisabledByBruteForce, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPassword
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentials, getType
areRequiredActionsEnabled, getRequiredActions
protected boolean validateForm(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)
validateForm
in class UsernamePasswordForm
public void authenticate(AuthenticationFlowContext context)
Authenticator
authenticate
in interface Authenticator
authenticate
in class UsernamePasswordForm
public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
Authenticator
configuredFor
in interface Authenticator
configuredFor
in class UsernamePasswordForm
public boolean requiresUser()
Authenticator
requiresUser
in interface Authenticator
requiresUser
in class UsernamePasswordForm
protected javax.ws.rs.core.Response createLoginForm(LoginFormsProvider form)
createLoginForm
in class AbstractUsernameFormAuthenticator
protected String getDefaultChallengeMessage(AuthenticationFlowContext context)
getDefaultChallengeMessage
in class AbstractUsernameFormAuthenticator
public PasswordCredentialProvider getCredentialProvider(KeycloakSession session)
getCredentialProvider
in interface CredentialValidator<PasswordCredentialProvider>
Copyright © 2021 JBoss by Red Hat. All rights reserved.