Class CheckedObjectInputStream

java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
com.ibm.security.access.javascript.CheckedObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

public class CheckedObjectInputStream extends ObjectInputStream
A secure implementation of ObjectInputStream that checks if deserialized objects are allowed based on the SandboxedContextFactory's whitelist.
  • Constructor Details

    • CheckedObjectInputStream

      public CheckedObjectInputStream(InputStream in) throws IOException
      Creates a new CheckedObjectInputStream that will use the whitelist to check if an object can be deserialized.
      Parameters:
      in - The input stream to read from
      Throws:
      IOException - If an I/O error occurs