Interface ClassNameFilter

  • public interface ClassNameFilter
    Allows to intercept class resolution during deserialization based on classname. It's used as a validation mechanism in Look-ahead ObjectInputStream.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void filter​(java.lang.String className)
      Called from ObjectInputStream.resolveClass(
    • Method Detail

      • filter

        void filter​(java.lang.String className)
        Called from ObjectInputStream.resolveClass( When the deserialization should not be allowed the method throws a RuntimeException.
        className - name of class to be deserialized