public class RedactMaskFactory extends MaskFactory
Masking Parameters: character replacements: string of 10 characters one per group below letter, upper case (default X) letter, lower case (default x) number, digit (default 9) symbol (default $) punctuation (default .) separator (default no masking) letter, other (default ª) mark (default ः) number, other (default ²) other (default )
time replacements: string of 6 numbers or _ one per field below year (0 to 4000, default no masking) month (1 to 12, default 1) date (1 to 31, default 1) hour (0 to 23, default 0) minute (0 to 59, default 0) second (0 to 59, default 0)
Parameters use "_" for preserve original.
Constructor and Description |
---|
RedactMaskFactory(String... params) |
Modifier and Type | Method and Description |
---|---|
protected DataMask |
buildBinaryMask(TypeDescription schema) |
protected DataMask |
buildBooleanMask(TypeDescription schema) |
protected DataMask |
buildDateMask(TypeDescription schema) |
protected DataMask |
buildDecimalMask(TypeDescription schema) |
protected DataMask |
buildDoubleMask(TypeDescription schema) |
protected DataMask |
buildLongMask(TypeDescription schema) |
protected DataMask |
buildStringMask(TypeDescription schema) |
protected DataMask |
buildTimestampMask(TypeDescription schema) |
double |
maskDouble(double value)
Replace each digit in value with digit.
|
long |
maskLong(long value)
Replace each digit in value with DIGIT_REPLACEMENT scaled to the matching
number of digits.
|
build, buildChildren, buildStructMask
public RedactMaskFactory(String... params)
protected DataMask buildBooleanMask(TypeDescription schema)
buildBooleanMask
in class MaskFactory
protected DataMask buildLongMask(TypeDescription schema)
buildLongMask
in class MaskFactory
protected DataMask buildDecimalMask(TypeDescription schema)
buildDecimalMask
in class MaskFactory
protected DataMask buildDoubleMask(TypeDescription schema)
buildDoubleMask
in class MaskFactory
protected DataMask buildStringMask(TypeDescription schema)
buildStringMask
in class MaskFactory
protected DataMask buildDateMask(TypeDescription schema)
buildDateMask
in class MaskFactory
protected DataMask buildTimestampMask(TypeDescription schema)
buildTimestampMask
in class MaskFactory
protected DataMask buildBinaryMask(TypeDescription schema)
buildBinaryMask
in class MaskFactory
public long maskLong(long value)
value
- the number to maskpublic double maskDouble(double value)
value
- the number to maskCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.