Class ObjectInputStreamWithClassLoader

java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.apache.activemq.artemis.utils.ObjectInputStreamWithClassLoader
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

public class ObjectInputStreamWithClassLoader extends ObjectInputStream
  • Field Details

  • Constructor Details

  • Method Details

    • getAllowList

      public String getAllowList()
      Returns:
      the allowList configured on this policy instance
    • getDenyList

      public String getDenyList()
      Returns:
      the denyList configured on this policy instance
    • setAllowList

      public void setAllowList(String allowList)
      Replaces the currently configured allowList with a comma separated string containing the new allowList. Null or empty string denotes no allowList entries, "*" indicates that all classes are allowListed.
      Parameters:
      allowList - the list that this policy is configured to recognize.
    • addToAllowList

      public void addToAllowList(String allowList)
      Adds to the currently configured allowList with a comma separated string containing the additional allowList entries. Null or empty string denotes no additional allowList entries.
      Parameters:
      allowList - the additional list entries that this policy is configured to recognize.
    • setDenyList

      public void setDenyList(String denyList)
      Replaces the currently configured denyList with a comma separated string containing the new denyList. Null or empty string denotes no denylist entries, "*" indicates that all classes are denylisted.
      Parameters:
      denyList - the list that this policy is configured to recognize.
    • addToDenyList

      public void addToDenyList(String denyList)
      Adds to the currently configured denyList with a comma separated string containing the additional denyList entries. Null or empty string denotes no additional denyList entries.
      Parameters:
      denyList - the additional list entries that this policy is configured to recognize.
    • resolveClass

      protected Class resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException
      Overrides:
      resolveClass in class ObjectInputStream
      Throws:
      IOException
      ClassNotFoundException
    • resolveProxyClass

      protected Class resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException
      Overrides:
      resolveProxyClass in class ObjectInputStream
      Throws:
      IOException
      ClassNotFoundException