org.keycloak.authentication.authenticators.browser

## Class UsernameForm

- java.lang.Object
- - org.keycloak.authentication.AbstractFormAuthenticator
  - - org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
    - - org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
      - - org.keycloak.authentication.authenticators.browser.UsernameForm

- All Implemented Interfaces:
    Authenticator, Provider

      public final class UsernameForm
      extends UsernamePasswordForm

- - ### 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`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UsernameForm()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected javax.ws.rs.core.Response` | `challenge(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)`
    `protected javax.ws.rs.core.Response` | `createLoginForm(LoginFormsProvider form)`
    `protected String` | `getDefaultChallengeMessage(AuthenticationFlowContext context)`
    `protected boolean` | `validateForm(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> formData)`

    - ### Methods inherited from class org.keycloak.authentication.authenticators.browser.UsernamePasswordForm

      `action, authenticate, close, configuredFor, requiresUser, setRequiredActions`

    - ### Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator

      `challenge, challenge, dummyHash, enabledUser, isTemporarilyDisabledByBruteForce, runDefaultDummyHash, setDuplicateUserChallenge, tempDisabledError, tempDisabledFieldError, testInvalidUser, validatePassword, validatePassword, validateUser, validateUserAndPassword`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.keycloak.authentication.Authenticator

      `areRequiredActionsEnabled, getRequiredActions`

- - ### Constructor Detail

    - #### UsernameForm

          public UsernameForm()

  - ### Method Detail

    - #### validateForm

          protected boolean validateForm(AuthenticationFlowContext context,
                                         javax.ws.rs.core.MultivaluedMap<String,String> formData)

      Overrides:
        `validateForm` in class `UsernamePasswordForm`

    - #### challenge

          protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context,
                                                        javax.ws.rs.core.MultivaluedMap<String,String> formData)

      Overrides:
        `challenge` in class `UsernamePasswordForm`

    - #### createLoginForm

          protected javax.ws.rs.core.Response createLoginForm(LoginFormsProvider form)

      Overrides:
        `createLoginForm` in class `AbstractUsernameFormAuthenticator`

    - #### getDefaultChallengeMessage

          protected String getDefaultChallengeMessage(AuthenticationFlowContext context)

      Overrides:
        `getDefaultChallengeMessage` in class `AbstractUsernameFormAuthenticator`

Copyright © 2021 JBoss by Red Hat. All rights reserved.