Class ValidatingObjectInputStream

java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.openjdk.jmc.common.io.ValidatingObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

public class ValidatingObjectInputStream extends ObjectInputStream
ObjectInputStream that validates the classes and count of objects and bytes read from it.

Reading must be done using the safeRead methods which sets validation parameters before reading. Any attempt to use read methods will be blocked.

See OWASP.

  • Method Details