Class LicenseDeserializer

java.lang.Object
io.confluent.kafka.schemaregistry.validator.licensing.LicenseDeserializer

public class LicenseDeserializer extends Object
Utility class for serializing and parsing license attributes. Handles conversion between LicenseInfo objects and string attribute representations. Uses LocalV1License entities to prevent orphaned license attributes.
  • Constructor Details

    • LicenseDeserializer

      public LicenseDeserializer()
  • Method Details

    • deserializeDeploymentAttributes

      public static List<LocalV1License> deserializeDeploymentAttributes(Set<String> attributes)
      Parses LocalV1License entities from attribute strings. Filters the provided attributes to only include V1License format strings.
      Parameters:
      attributes - Set of attribute strings to parse
      Returns:
      List of LocalV1License entities parsed from the attributes
    • isV1LicenseAttribute

      public static boolean isV1LicenseAttribute(String attribute)
      Checks if an attribute string is a V1License format.
      Parameters:
      attribute - The attribute string to check
      Returns:
      true if the attribute is a V1License format, false otherwise