Class ClassAllowList
java.lang.Object
org.infinispan.commons.configuration.ClassAllowList
- Direct Known Subclasses:
ClassWhiteList
The
ClassAllowList
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.allowlist.regexps" and fully qualified class names from "infinispan.deserialization.allowlist.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
ConstructorDescriptionClassAllowList
(Collection<String> classes, List<String> regexps, ClassLoader classLoader) ClassAllowList
(List<String> regexps) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClasses
(Class<?>... classes) void
addClasses
(String... classes) void
addRegexps
(String... regexps) boolean
isSafeClass
(String className) void
read
(ClassAllowList allowList)
-
Constructor Details
-
ClassAllowList
public ClassAllowList() -
ClassAllowList
-
ClassAllowList
-
-
Method Details
-
isSafeClass
-
addClasses
-
addClasses
-
addRegexps
-
read
-
getClassLoader
-