public interface ClassNameFilter
Allows to intercept class resolution during deserialization based on classname. It's used as a validation mechanism in Look-ahead ObjectInputStream.
void filter(String className)Called from
ObjectInputStream.resolveClass(java.io.ObjectStreamClass). When the deserialization should not be allowed the method throws a
className- name of class to be deserialized