Class EntitlementInitialization

java.lang.Object
org.elasticsearch.entitlement.initialization.EntitlementInitialization

public class EntitlementInitialization extends Object
Called by the agent during agentmain to configure the entitlement system, instantiate and configure an EntitlementChecker, make it available to the bootstrap library via checker(), and then install the Instrumenter to begin injecting our instrumentation.
  • Constructor Details

    • EntitlementInitialization

      public EntitlementInitialization()
  • Method Details

    • checker

      public static EntitlementChecker checker()
    • getError

      public static RuntimeException getError()
      Return any exception that occurred during initialization
    • initialize

      public static void initialize(Instrumentation inst)
      Initializes the Entitlement system:
      1. Initialize dynamic instrumentation via DynamicInstrumentation.initialize(java.lang.instrument.Instrumentation, java.lang.Class<?>, boolean)
      2. Creates the PolicyManager
      3. Creates the ElasticsearchEntitlementChecker instance referenced by the instrumented methods

      NOTE: this method is referenced by the agent reflectively

      Parameters:
      inst - the JVM instrumentation class instance