Class 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 Detail

      • logger

        protected static final org.infinispan.util.logging.Log logger
    • Method Detail

      • init

        public void init​(com.fasterxml.jackson.databind.JavaType baseType)
        Specified by:
        init in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
      • idFromValue

        public String idFromValue​(Object value)
        Specified by:
        idFromValue in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
      • idFromValueAndType

        public String idFromValueAndType​(Object value,
                                         Class<?> suggestedType)
        Specified by:
        idFromValueAndType in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
      • idFromBaseType

        public String idFromBaseType()
        Specified by:
        idFromBaseType in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
      • getDescForKnownTypeIds

        public String getDescForKnownTypeIds()
        Specified by:
        getDescForKnownTypeIds in interface com.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:
        typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
        Throws:
        IOException
      • getMechanism

        public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
        Specified by:
        getMechanism in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver