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.

  • Constructor Details

  • Method Details

    • checkClass

      public boolean checkClass(org.apache.fury.resolver.ClassResolver classResolver, String className)
      Specified by:
      checkClass in interface org.apache.fury.resolver.ClassChecker
    • allowClass

      public void allowClass(String classNameOrWildcard)
    • allowClasses

      public void allowClasses(Collection<String> classNamesOrWildcards)
    • disallowClass

      public void disallowClass(String classNameOrWildcard)
    • getCheckLevel

      public RegexAllowListChecker.CheckLevel getCheckLevel()
    • setCheckLevel

      public void setCheckLevel(RegexAllowListChecker.CheckLevel checkLevel)