Class AuthenticatorUtils

java.lang.Object
org.keycloak.authentication.authenticators.util.AuthenticatorUtils

public final class AuthenticatorUtils extends Object
Author:
Vaclav Muzikar <vmuzikar@redhat.com>
  • Constructor Details

    • AuthenticatorUtils

      public AuthenticatorUtils()
  • Method Details

    • getDisabledByBruteForceEventError

      public static String getDisabledByBruteForceEventError(BruteForceProtector protector, KeycloakSession session, RealmModel realm, UserModel user)
    • getDisabledByBruteForceEventError

      public static String getDisabledByBruteForceEventError(AuthenticationFlowContext authnFlowContext, UserModel authenticatedUser)
    • parseCompletedExecutions

      public static Map<String,Integer> parseCompletedExecutions(String note)
      Get all completed authenticator executions from the user session notes.
      Parameters:
      note - The serialized note value to parse
      Returns:
      A list of execution ids that were successfully completed to create this authentication session
    • updateCompletedExecutions

      public static void updateCompletedExecutions(AuthenticationSessionModel authSession, UserSessionModel userSession, String executionId)
      Update the completed authenticators note on the new auth session
      Parameters:
      authSession - The current authentication session
      userSession - The previous user session
      executionId - The completed execution id