Class ClassAnonymizationSettings
java.lang.Object
com.microblink.blinkid.entities.recognizers.blinkid.generic.ClassAnonymizationSettings
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Only specified parameters will be taken into account during anonymization. -
Constructor Summary
ConstructorDescriptionClassAnonymizationSettings
(Country country, Region region, Type type, FieldType[] fields, DocumentNumberAnonymizationSettings documentNumberAnonymizationSettings) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassAnonymizationSettings
createFromNative
(int country, int region, int type, int[] fields, int prefixDigitsVisible, int suffixDigitsVisible) This method is called from native code to buildClassAnonymizationSettings
from native object.If set, specified fields will be anonymized on documents issued by specified country only.If set, some digits of the anonymized document number will be shown.Fields to be anonymized.If set, specified fields will be anonymized on documents issued by specified region only.getType()
If set, specified fields will be anonymized on documents of specified type only.int[]
SerializesClassAnonymizationSettings
to int array.static int[]
-
Constructor Details
-
ClassAnonymizationSettings
public ClassAnonymizationSettings(@Nullable Country country, @Nullable Region region, @Nullable Type type, FieldType[] fields, @Nullable DocumentNumberAnonymizationSettings documentNumberAnonymizationSettings)
-
-
Method Details
-
createFromNative
public static ClassAnonymizationSettings createFromNative(int country, int region, int type, int[] fields, int prefixDigitsVisible, int suffixDigitsVisible) This method is called from native code to buildClassAnonymizationSettings
from native object. -
getCountry
If set, specified fields will be anonymized on documents issued by specified country only. Otherwise, issuing country will not be taken into account during anonymization. -
getRegion
If set, specified fields will be anonymized on documents issued by specified region only. Otherwise, issuing region will not be taken into account during anonymization. -
getType
If set, specified fields will be anonymized on documents of specified type only. Otherwise, document type will not be taken into account during anonymization. -
getFields
Fields to be anonymized. -
getDocumentNumberAnonymizationSettings
If set, some digits of the anonymized document number will be shown. -
serializeToArray
@NonNull public int[] serializeToArray()SerializesClassAnonymizationSettings
to int array.- Returns:
- factors serialized to array
-
serializeToArray
-