Class SaferObjectInputStream

java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
com.inductiveautomation.ignition.common.util.SaferObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

public class SaferObjectInputStream extends ObjectInputStream
Default java deserialization is dangerous with untrusted payloads. This subclass of ObjectInputStream accepts a "whitelist" of acceptable classes to load.

See https://inst.eecs.berkeley.edu/~cs161/fa05/Notes/objectSerialization.pdf