Class ConditionDeserializer

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<List<Condition>>
org.iam.policy.grammer.ConditionDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider

public class ConditionDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<List<Condition>>
Custom deserializer for a list of Condition objects from JSON.

This class parses a JSON structure where each field is a condition operator, and its value is a mapping from keys to string or array of strings. It also handles wildcard and regex formatting for non-IP operators.

  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext context)
    Deserializes JSON into a list of Condition objects.

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConditionDeserializer

      public ConditionDeserializer()
  • Method Details

    • deserialize

      public List<Condition> deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
      Deserializes JSON into a list of Condition objects.
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<List<Condition>>
      Parameters:
      jp - the JSON parser
      context - the deserialization context
      Returns:
      a list of Condition objects
      Throws:
      IOException - if an I/O error occurs