Class KeycloakApplication

java.lang.Object
jakarta.ws.rs.core.Application
org.keycloak.services.resources.KeycloakApplication

public abstract class KeycloakApplication extends jakarta.ws.rs.core.Application
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Details

    • KeycloakApplication

      public KeycloakApplication()
  • Method Details

    • getTmpDirectory

      public static String getTmpDirectory()
      Get the temp directory as initialized by the current KeycloakApplication.
      The directory is not guaranteed to exist
    • initTmpDirectory

      protected void initTmpDirectory()
    • getDataDir

      protected abstract String getDataDir()
    • startup

      protected void startup()
    • getTransactionTimeout

      protected int getTransactionTimeout(DefaultKeycloakSessionFactory sessionFactory)
    • shutdown

      protected void shutdown()
    • shutdownDelayInitiated

      protected void shutdownDelayInitiated()
    • bootstrap

      protected ExportImportManager bootstrap(KeycloakSession session)
    • createTemporaryAdmin

      protected abstract void createTemporaryAdmin(KeycloakSession session)
    • createSessionFactory

      protected abstract DefaultKeycloakSessionFactory createSessionFactory()
    • getSessionFactory

      public static DefaultKeycloakSessionFactory getSessionFactory()
      WARNING: This method is for use by test logic. Will return null if there is no current KeycloakApplication, or if the startup has not yet reached the point of setting this value.