public class SubTypeValidator extends Object
BeanDeserializerFactory| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
_cfgIllegalClassNames
Set of class names of types that are never to be deserialized.
|
protected static Set<String> |
DEFAULT_NO_DESER_CLASS_NAMES
Set of well-known "nasty classes", deserialization of which is considered dangerous
and should (and is) prevented by default.
|
protected static String |
PREFIX_C3P0 |
protected static String |
PREFIX_SPRING |
| Modifier | Constructor and Description |
|---|---|
protected |
SubTypeValidator() |
| Modifier and Type | Method and Description |
|---|---|
static SubTypeValidator |
instance() |
boolean |
isIllegalType(Class<?> raw)
Method for checking whether given class is one of known "gadget" types
that are never to be deserialized.
|
void |
validateSubType(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
protected static final String PREFIX_SPRING
protected static final String PREFIX_C3P0
protected static final Set<String> DEFAULT_NO_DESER_CLASS_NAMES
public static SubTypeValidator instance()
public void validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc) throws JsonMappingException
JsonMappingExceptionpublic boolean isIllegalType(Class<?> raw)
Copyright © 2008–2026 FasterXML. All rights reserved.