Class IntegerAnonymizer
java.lang.Object
org.apache.directory.api.ldap.model.ldif.anonymizer.AbstractAnonymizer<String>
org.apache.directory.api.ldap.model.ldif.anonymizer.IntegerAnonymizer
- All Implemented Interfaces:
Anonymizer<String>
- Direct Known Subclasses:
TelephoneNumberAnonymizer
A default anonymizer for attributes that is an Integer. the initial value is randomized
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractAnonymizer
attributeAnonymizers, caseSensitive, schemaManager -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of IntegerAnonymizer.IntegerAnonymizer(Map<Integer, String> latestIntegerMap) Creates a new instance of IntegerAnonymizer. -
Method Summary
Modifier and TypeMethodDescriptionAnonymize an attribute using pure random values (either chars of bytes, depending on the Attribute type)voidsetLatestIntegerMap(Map<Integer, String> latestIntegerMap) Set the Map containing anonymized integersMethods inherited from class AbstractAnonymizer
computeNewValue, computeNewValue, getLatestBytesMap, getLatestStringMap, setAnonymizers, setLatestBytesMap, setLatestStringMap, setSchemaManager
-
Constructor Details
-
IntegerAnonymizer
public IntegerAnonymizer()Creates a new instance of IntegerAnonymizer. -
IntegerAnonymizer
-
-
Method Details
-
anonymize
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 counterpartvalueSet- The existing set of anonymized counterpartattribute- The attribute to anonymize- Returns:
- The anonymized attribute
-
getLatestIntegerMap
-
setLatestIntegerMap
-