Class RegexAllowListChecker
java.lang.Object
com.broadleafcommerce.common.extension.serialization.RegexAllowListChecker
- All Implemented Interfaces:
org.apache.fury.resolver.ClassChecker
@ThreadSafe
public class RegexAllowListChecker
extends Object
implements org.apache.fury.resolver.ClassChecker
Custom
ClassChecker that supports advanced wildcards (intermediate and suffix '*') by
converting them to regular expressions.
This implementation includes an internal cache for resolved class names to ensure O(1) performance after the initial regex match.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidallowClass(String classNameOrWildcard) voidallowClasses(Collection<String> classNamesOrWildcards) booleancheckClass(org.apache.fury.resolver.ClassResolver classResolver, String className) voiddisallowClass(String classNameOrWildcard) voidsetCheckLevel(RegexAllowListChecker.CheckLevel checkLevel)
-
Constructor Details
-
RegexAllowListChecker
public RegexAllowListChecker() -
RegexAllowListChecker
-
-
Method Details
-
checkClass
- Specified by:
checkClassin interfaceorg.apache.fury.resolver.ClassChecker
-
allowClass
-
allowClasses
-
disallowClass
-
getCheckLevel
-
setCheckLevel
-