Class PasswordForm
- java.lang.Object
-
- org.keycloak.authentication.AbstractFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
-
- org.keycloak.authentication.authenticators.browser.PasswordForm
-
- All Implemented Interfaces:
org.keycloak.authentication.Authenticator
,org.keycloak.authentication.CredentialValidator<PasswordCredentialProvider>
,org.keycloak.provider.Provider
public class PasswordForm extends UsernamePasswordForm implements org.keycloak.authentication.CredentialValidator<PasswordCredentialProvider>
-
-
Field Summary
-
Fields inherited from class org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
log
-
Fields inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION, USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
-
-
Constructor Summary
Constructors Constructor Description PasswordForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
boolean
configuredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
protected javax.ws.rs.core.Response
createLoginForm(org.keycloak.forms.login.LoginFormsProvider form)
PasswordCredentialProvider
getCredentialProvider(org.keycloak.models.KeycloakSession session)
protected String
getDefaultChallengeMessage(org.keycloak.authentication.AuthenticationFlowContext context)
boolean
requiresUser()
protected boolean
validateForm(org.keycloak.authentication.AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
action, challenge, close, setRequiredActions
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
challenge, challenge, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, isDisabledByBruteForce, isUserAlreadySetBeforeUsernamePasswordAuth, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validateUser, validateUserAndPassword
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
validateForm
protected boolean validateForm(org.keycloak.authentication.AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)
- Overrides:
validateForm
in classUsernamePasswordForm
-
authenticate
public void authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
authenticate
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
authenticate
in classUsernamePasswordForm
-
configuredFor
public boolean configuredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
- Specified by:
configuredFor
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
configuredFor
in classUsernamePasswordForm
-
requiresUser
public boolean requiresUser()
- Specified by:
requiresUser
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
requiresUser
in classUsernamePasswordForm
-
createLoginForm
protected javax.ws.rs.core.Response createLoginForm(org.keycloak.forms.login.LoginFormsProvider form)
- Overrides:
createLoginForm
in classAbstractUsernameFormAuthenticator
-
getDefaultChallengeMessage
protected String getDefaultChallengeMessage(org.keycloak.authentication.AuthenticationFlowContext context)
- Overrides:
getDefaultChallengeMessage
in classAbstractUsernameFormAuthenticator
-
getCredentialProvider
public PasswordCredentialProvider getCredentialProvider(org.keycloak.models.KeycloakSession session)
- Specified by:
getCredentialProvider
in interfaceorg.keycloak.authentication.CredentialValidator<PasswordCredentialProvider>
-
-