Class SecureTypeIdResolver
- java.lang.Object
-
- org.infinispan.server.core.dataconversion.json.SecureTypeIdResolver
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class SecureTypeIdResolver extends Object implements com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Jackson TypeIdResolver that checks the serialization whitelist before deserializing JSON types.- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.infinispan.util.logging.Loglogger
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescForKnownTypeIds()com.fasterxml.jackson.annotation.JsonTypeInfo.IdgetMechanism()StringidFromBaseType()StringidFromValue(Object value)StringidFromValueAndType(Object value, Class<?> suggestedType)voidinit(com.fasterxml.jackson.databind.JavaType baseType)com.fasterxml.jackson.databind.JavaTypetypeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String id)
-
-
-
Method Detail
-
init
public void init(com.fasterxml.jackson.databind.JavaType baseType)
- Specified by:
initin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValue
public String idFromValue(Object value)
- Specified by:
idFromValuein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValueAndType
public String idFromValueAndType(Object value, Class<?> suggestedType)
- Specified by:
idFromValueAndTypein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromBaseType
public String idFromBaseType()
- Specified by:
idFromBaseTypein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getDescForKnownTypeIds
public String getDescForKnownTypeIds()
- Specified by:
getDescForKnownTypeIdsin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String id) throws IOException- Specified by:
typeFromIdin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver- Throws:
IOException
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
- Specified by:
getMechanismin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
-