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 java.lang.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.Log
logger
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescForKnownTypeIds()
com.fasterxml.jackson.annotation.JsonTypeInfo.Id
getMechanism()
java.lang.String
idFromBaseType()
java.lang.String
idFromValue(java.lang.Object value)
java.lang.String
idFromValueAndType(java.lang.Object value, java.lang.Class<?> suggestedType)
void
init(com.fasterxml.jackson.databind.JavaType baseType)
com.fasterxml.jackson.databind.JavaType
typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, java.lang.String id)
-
-
-
Method Detail
-
init
public void init(com.fasterxml.jackson.databind.JavaType baseType)
- Specified by:
init
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValue
public java.lang.String idFromValue(java.lang.Object value)
- Specified by:
idFromValue
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValueAndType
public java.lang.String idFromValueAndType(java.lang.Object value, java.lang.Class<?> suggestedType)
- Specified by:
idFromValueAndType
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromBaseType
public java.lang.String idFromBaseType()
- Specified by:
idFromBaseType
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getDescForKnownTypeIds
public java.lang.String getDescForKnownTypeIds()
- Specified by:
getDescForKnownTypeIds
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, java.lang.String id) throws java.io.IOException
- Specified by:
typeFromId
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
- Throws:
java.io.IOException
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
- Specified by:
getMechanism
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
-