Class Whitelist


  • public final class Whitelist
    extends java.lang.Object
    Allowlist contains data structures designed to be used to generate an allowlist of Java classes, constructors, methods, and fields that can be used within a Painless script at both compile-time and run-time. A Allowlist consists of several pieces with WhitelistClasss as the top level. Each WhitelistClass will contain zero-to-many WhitelistConstructors, WhitelistMethods, and WhitelistFields which are what will be available with a Painless script. See each individual allowlist object for more detail.
    • Field Detail

      • BASE_WHITELISTS

        public static final java.util.List<Whitelist> BASE_WHITELISTS
      • classLoader

        public final java.lang.ClassLoader classLoader
        The ClassLoader used to look up the allowlisted Java classes, constructors, methods, and fields.
      • whitelistClasses

        public final java.util.List<WhitelistClass> whitelistClasses
        The List of all the allowlisted Painless classes.
      • whitelistImportedMethods

        public final java.util.List<WhitelistMethod> whitelistImportedMethods
        The List of all the allowlisted static Painless methods.
      • whitelistClassBindings

        public final java.util.List<WhitelistClassBinding> whitelistClassBindings
        The List of all the allowlisted Painless class bindings.
      • whitelistInstanceBindings

        public final java.util.List<WhitelistInstanceBinding> whitelistInstanceBindings
        The List of all the allowlisted Painless instance bindings.