Class BinaryAnonymizer

    • Field Detail

      • latestBytesMap

        protected Map<Integer,​byte[]> latestBytesMap
        The latest anonymized byte[] value map
    • Constructor Detail

      • BinaryAnonymizer

        public BinaryAnonymizer()
        Creates a new instance of BinaryAnonymizer.
      • BinaryAnonymizer

        public BinaryAnonymizer​(Map<Integer,​byte[]> latestBytesMap)
        Creates a new instance of BinaryAnonymizer.
        Parameters:
        latestBytesMap - The map containing the latest value for each length
    • Method Detail

      • anonymize

        public Attribute anonymize​(Map<Value,​Value> valueMap,
                                   Set<Value> valueSet,
                                   Attribute attribute)
        Anonymize an attribute using pure random values (either chars of bytes, depending on the Attribute type)
        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