Package org.apache.struts2.ognl

# Class ProviderAllowlist

java.lang.Object
org.apache.struts2.ognl.ProviderAllowlist

public class ProviderAllowlist extends Object
Allows registration of classes that should be allowed to be used in OGNL expressions, using a key to identify the source of the allowlist.

Since:
  6.4.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ProviderAllowlist()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clearAllowlist(Object key)`
  `Set<Class<?>>`
  `getProviderAllowlist()`
  `void`
  `registerAllowlist(Object key, Set<Class<?>> allowlist)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ProviderAllowlist

    public ProviderAllowlist()

- ## Method Details

  - ### registerAllowlist

    public void registerAllowlist(Object key, Set<Class<?>> allowlist)

  - ### clearAllowlist

    public void clearAllowlist(Object key)

  - ### getProviderAllowlist

    public Set<Class<?>> getProviderAllowlist()