Interface RequiredActionFactory

All Superinterfaces:
ProviderFactory<RequiredActionProvider>
All Known Implementing Classes:
DeleteAccount, DeleteCredentialAction, IdpLinkAction, RecoveryAuthnCodesAction, TermsAndConditions, UpdateEmail, UpdatePassword, UpdateProfile, UpdateTotp, UpdateUserLocaleAction, VerifyEmail, VerifyUserProfile, WebAuthnPasswordlessRegisterFactory, WebAuthnRegisterFactory

public interface RequiredActionFactory extends ProviderFactory<RequiredActionProvider>
Factory interface for RequiredActionProvider's.
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Method Details

    • getMaxAuthAgePropertyConfig

      static List<ProviderConfigProperty> getMaxAuthAgePropertyConfig()
    • getDisplayText

      String getDisplayText()
      Display text used in admin console to reference this required action
      Returns:
    • isOneTimeAction

      default boolean isOneTimeAction()
      Flag indicating whether the execution of the required action by the same circumstances (e.g. by one and the same action token) should only be permitted once.
      Returns:
    • isConfigurable

      default boolean isConfigurable()
      Indicates whether this required action can be configured via the admin ui.
      Returns:
    • getConfigMetadata

      default List<ProviderConfigProperty> getConfigMetadata()
      Description copied from interface: ProviderFactory
      Returns the metadata for each configuration property supported by this factory.
      Specified by:
      getConfigMetadata in interface ProviderFactory<RequiredActionProvider>
      Returns:
      a list with the metadata for each configuration property supported by this factory
    • validateConfig

      default void validateConfig(KeycloakSession session, RealmModel realm, RequiredActionConfigModel model)
      Allows users to validate the provided configuration for this required action. Users can throw a ModelValidationException to indicate that the configuration is invalid. Defaults validating max_auth_age value.
      Parameters:
      session -
      realm -
      model -
    • parseMaxAuthAge

      static int parseMaxAuthAge(RequiredActionConfigModel model) throws NumberFormatException
      Throws:
      NumberFormatException