Class ClassFilter

  • public class ClassFilter
    extends java.lang.Object
    Holds blacklist and whitelist configuration in java deserialization configuration.
    • Constructor Detail

      • ClassFilter

        public ClassFilter()
      • ClassFilter

        public ClassFilter​(ClassFilter filter)
    • Method Detail

      • getClasses

        public java.util.Set<java.lang.String> getClasses()
        Returns unmodifiable set of class names.
      • getPackages

        public java.util.Set<java.lang.String> getPackages()
        Returns unmodifiable set of package names.
      • getPrefixes

        public java.util.Set<java.lang.String> getPrefixes()
        Returns unmodifiable set of class name prefixes.
      • addClasses

        public ClassFilter addClasses​(java.lang.String... names)
      • setClasses

        public ClassFilter setClasses​(java.util.Collection<java.lang.String> names)
      • addPackages

        public ClassFilter addPackages​(java.lang.String... names)
      • setPackages

        public ClassFilter setPackages​(java.util.Collection<java.lang.String> names)
      • addPrefixes

        public ClassFilter addPrefixes​(java.lang.String... names)
      • setPrefixes

        public ClassFilter setPrefixes​(java.util.Collection<java.lang.String> names)
      • isEmpty

        public boolean isEmpty()
      • isListed

        public boolean isListed​(java.lang.String className)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object