Package org.apache.struts2.ognl

# Class ThreadAllowlist

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

public class ThreadAllowlist extends Object
Allows any bean to allowlist a class for use in OGNL expressions, for the current thread only. The allowlist can be cleared once any desired OGNL expressions have been evaluated.

Since:
  6.4.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ThreadAllowlist()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `allowClass(Class<?> clazz)`
  `void`
  `clearAllowlist()`
  `Set<Class<?>>`
  `getAllowlist()`

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

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

- ## Constructor Details

  - ### ThreadAllowlist

    public ThreadAllowlist()

- ## Method Details

  - ### allowClass

    public void allowClass(Class<?> clazz)

  - ### clearAllowlist

    public void clearAllowlist()

  - ### getAllowlist

    public Set<Class<?>> getAllowlist()