Class Fastjson2SecurityManager.Handler

java.lang.Object
com.alibaba.fastjson2.filter.ContextAutoTypeBeforeHandler
org.apache.dubbo.common.serialize.fastjson2.Fastjson2SecurityManager.Handler
All Implemented Interfaces:
com.alibaba.fastjson2.filter.Filter, com.alibaba.fastjson2.JSONReader.AutoTypeBeforeHandler
Enclosing class:
Fastjson2SecurityManager

public static class Fastjson2SecurityManager.Handler extends com.alibaba.fastjson2.filter.ContextAutoTypeBeforeHandler
  • Constructor Details

    • Handler

      public Handler(org.apache.dubbo.common.utils.SerializeCheckStatus status, org.apache.dubbo.common.utils.SerializeSecurityManager serializeSecurityManager, boolean checkSerializable, String[] acceptNames, Set<String> disAllowedList)
  • Method Details

    • apply

      public Class<?> apply(String typeName, Class<?> expectClass, long features)
      Specified by:
      apply in interface com.alibaba.fastjson2.JSONReader.AutoTypeBeforeHandler
      Overrides:
      apply in class com.alibaba.fastjson2.filter.ContextAutoTypeBeforeHandler
    • checkIfDisAllow

      public boolean checkIfDisAllow(String typeName)
    • isCheckSerializable

      public boolean isCheckSerializable()
    • loadClassDirectly

      public Class<?> loadClassDirectly(String typeName)