Class JacksonSerializer.GadgetClassDenyList

  • Enclosing class:

    public static class JacksonSerializer.GadgetClassDenyList
    extends com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator
    Using the deny list from Jackson databind of class names that shouldn't be allowed. Not nice to depend on implementation details of Jackson, but good to use the same list to automatically have the list updated when new classes are added in Jackson.
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAllowedClass​(java.lang.Class<?> clazz)  
      boolean isAllowedClassName​(java.lang.String className)  
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator

        instance, validateSubType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GadgetClassDenyList

        public GadgetClassDenyList()
    • Method Detail

      • isAllowedClass

        public boolean isAllowedClass​(java.lang.Class<?> clazz)
      • isAllowedClassName

        public boolean isAllowedClassName​(java.lang.String className)