Class AnonymizingTypeTranslator

  • All Implemented Interfaces:
    BiFunction<String,​Object,​Script>, Translator.ScriptTranslator.TypeTranslator

    public class AnonymizingTypeTranslator
    extends GroovyTranslator.DefaultTypeTranslator
    This Translator will translate Bytecode into a representation that has been stripped of any user data (anonymized). A default anonymizer is provided, but can be replaced with a custom anonymizer as needed. The default anonymizer replaces any String, Numeric, Date, Timestamp, or UUID with a type-based token. Identical values will receive the same token (e.g. if "foo" is assigned "string0" then all occurrences of "foo" will be replaced with "string0").