Interface Anonymizer<K>

Type Parameters:
K - The type of object that will be anonymized
All Known Implementing Classes:
AbstractAnonymizer, BinaryAnonymizer, CaseSensitiveStringAnonymizer, IntegerAnonymizer, StringAnonymizer, TelephoneNumberAnonymizer

public interface Anonymizer<K>
An interface for Anonymizers.
Author:
Apache Directory Project
  • Method Details

    • anonymize

      Attribute anonymize(Map<Value,Value> valueMap, Set<Value> valueSet, Attribute attribute)
      Take an attribute and its value, anonymizing all of them.
      Parameters:
      valueMap - The existing map of value to the associated anonymized counterpart
      valueSet - The existing set of anonymized counterpart
      attribute - The attribute to anonymize
      Returns:
      The anonymized attribute
    • setSchemaManager

      void setSchemaManager(SchemaManager schemaManager)
      Inject a SchemaManager instance in this Anonymizer
      Parameters:
      schemaManager - The SchemaManager instance
    • setAnonymizers

      void setAnonymizers(Map<String, Anonymizer<K>> attributeAnonymizers)
      Set the list of existing anonymizers
      Parameters:
      attributeAnonymizers - The list of existing anonymizers
    • getLatestStringMap

      Map<Integer,String> getLatestStringMap()
      Get the map of anonymized values
      Returns:
      The latest String anonymized value map
    • setLatestStringMap

      void setLatestStringMap(Map<Integer,String> latestStringMap)
      Set a new map of anynomized values
      Parameters:
      latestStringMap - The latest String anonymized value map
    • getLatestBytesMap

      Map<Integer,byte[]> getLatestBytesMap()
      Get the map of anonymized byte[] values
      Returns:
      The latest byte[] anonymized value map
    • setLatestBytesMap

      void setLatestBytesMap(Map<Integer,byte[]> latestBytesMap)
      Set a new map of anynomized binary values
      Parameters:
      latestBytesMap - The latest byte[] anonymized value map