Interface Anonymizer<K>
- Type Parameters:
K- The type of object that will be anonymized
- All Known Implementing Classes:
AbstractAnonymizer, BinaryAnonymizer, CaseSensitiveStringAnonymizer, IntegerAnonymizer, StringAnonymizer, TelephoneNumberAnonymizer
-
Method Summary
Modifier and TypeMethodDescriptionTake an attribute and its value, anonymizing all of them.Get the map of anonymized byte[] valuesGet the map of anonymized valuesvoidsetAnonymizers(Map<String, Anonymizer<K>> attributeAnonymizers) Set the list of existing anonymizersvoidsetLatestBytesMap(Map<Integer, byte[]> latestBytesMap) Set a new map of anynomized binary valuesvoidsetLatestStringMap(Map<Integer, String> latestStringMap) Set a new map of anynomized valuesvoidsetSchemaManager(SchemaManager schemaManager) Inject a SchemaManager instance in this Anonymizer
-
Method Details
-
anonymize
Take an attribute and its value, anonymizing all of them.- Parameters:
valueMap- The existing map of value to the associated anonymized counterpartvalueSet- The existing set of anonymized counterpartattribute- The attribute to anonymize- Returns:
- The anonymized attribute
-
setSchemaManager
Inject a SchemaManager instance in this Anonymizer- Parameters:
schemaManager- The SchemaManager instance
-
setAnonymizers
Set the list of existing anonymizers- Parameters:
attributeAnonymizers- The list of existing anonymizers
-
getLatestStringMap
-
setLatestStringMap
-
getLatestBytesMap
-
setLatestBytesMap
-