Class ClassWhiteList

  • public final class ClassWhiteList
    extends java.lang.Object
    The ClassWhiteList maintains classes definitions either by name or regular expression and is used for permissioning.

    By default it includes regular expressions from the system property "infinispan.deserialization.whitelist.regexps" and fully qualified class names from "infinispan.deserialization.whitelist.classes".

    Classes are checked first against the set of class names, and in case not present each of the regular expressions are evaluated in the order supplied.

    • Constructor Summary

      Constructor Description
      ClassWhiteList​(java.util.Collection<java.lang.String> classes, java.util.List<java.lang.String> regexps)  
      ClassWhiteList​(java.util.List<java.lang.String> regexps)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addClasses​(java.lang.Class<?>... classes)  
      void addClasses​(java.lang.String... classes)  
      void addRegexps​(java.lang.String... regexps)  
      boolean isSafeClass​(java.lang.String className)  
      void read​(ClassWhiteList whiteList)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassWhiteList

        public ClassWhiteList()
      • ClassWhiteList

        public ClassWhiteList​(java.util.List<java.lang.String> regexps)
      • ClassWhiteList

        public ClassWhiteList​(java.util.Collection<java.lang.String> classes,
                              java.util.List<java.lang.String> regexps)
    • Method Detail

      • isSafeClass

        public boolean isSafeClass​(java.lang.String className)
      • addClasses

        public void addClasses​(java.lang.Class<?>... classes)
      • addClasses

        public void addClasses​(java.lang.String... classes)
      • addRegexps

        public void addRegexps​(java.lang.String... regexps)