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(java.io.ObjectStreamClass).
    • Method Detail

      • filter

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