Class SubTypeValidator
java.lang.Object
tools.jackson.databind.jsontype.impl.SubTypeValidator
Helper class used to encapsulate rules that determine subtypes that
are invalid to use, even with default typing, mostly due to security
concerns.
Used by
BeanDeserializerFactory- Since:
- 2.8.11
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet of class names of types that are never to be deserialized.Set of well-known "nasty classes", deserialization of which is considered dangerous and should (and is) prevented by default.private static final SubTypeValidatorprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubTypeValidatorinstance()voidvalidateSubType(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef)
-
Field Details
-
PREFIX_SPRING
- See Also:
-
PREFIX_C3P0
- See Also:
-
DEFAULT_NO_DESER_CLASS_NAMES
-
_cfgIllegalClassNames
-
instance
-
-
Constructor Details
-
SubTypeValidator
protected SubTypeValidator()
-
-
Method Details
-
instance
-
validateSubType
public void validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef)
-