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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attributeanonymize(Map<Value,Value> valueMap, Set<Value> valueSet, Attribute attribute)Take an attribute and its value, anonymizing all of them.Map<Integer,byte[]>getLatestBytesMap()Map<Integer,String>getLatestStringMap()voidsetAnonymizers(Map<String,Anonymizer<K>> attributeAnonymizers)Set the list of existing anonymizersvoidsetLatestBytesMap(Map<Integer,byte[]> latestBytesMap)voidsetLatestStringMap(Map<Integer,String> latestStringMap)voidsetSchemaManager(SchemaManager schemaManager)Inject a SchemaManager instance in this Anonymizer
-
-
-
Method Detail
-
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 counterpartvalueSet- The existing set of anonymized counterpartattribute- 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()
- Returns:
- The latest String anonymized value map
-
setLatestStringMap
void setLatestStringMap(Map<Integer,String> latestStringMap)
- Parameters:
latestStringMap- The latest String anonymized value map
-
getLatestBytesMap
Map<Integer,byte[]> getLatestBytesMap()
- Returns:
- The latest byte[] anonymized value map
-
-