Class ClassWhiteList
- java.lang.Object
-
- org.infinispan.commons.configuration.ClassWhiteList
-
public final class ClassWhiteList extends Object
TheClassWhiteList
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.
- Since:
- 9.4
-
-
Constructor Summary
Constructors Constructor Description ClassWhiteList()
ClassWhiteList(List<String> regexps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClasses(Class<?>... classes)
void
addRegexps(String... regexps)
boolean
isSafeClass(String className)
-