public class PasswordForm extends UsernamePasswordForm implements CredentialValidator<PasswordCredentialProvider>
logATTEMPTED_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, setRequiredActionschallenge, challenge, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, isDisabledByBruteForce, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentials, getTypeareRequiredActionsEnabled, getRequiredActionsprotected boolean validateForm(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)
validateForm in class UsernamePasswordFormpublic void authenticate(AuthenticationFlowContext context)
Authenticatorauthenticate in interface Authenticatorauthenticate in class UsernamePasswordFormpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
AuthenticatorconfiguredFor in interface AuthenticatorconfiguredFor in class UsernamePasswordFormpublic boolean requiresUser()
AuthenticatorrequiresUser in interface AuthenticatorrequiresUser in class UsernamePasswordFormprotected javax.ws.rs.core.Response createLoginForm(LoginFormsProvider form)
createLoginForm in class AbstractUsernameFormAuthenticatorprotected String getDefaultChallengeMessage(AuthenticationFlowContext context)
getDefaultChallengeMessage in class AbstractUsernameFormAuthenticatorpublic PasswordCredentialProvider getCredentialProvider(KeycloakSession session)
getCredentialProvider in interface CredentialValidator<PasswordCredentialProvider>Copyright © 2021 JBoss by Red Hat. All rights reserved.