@Documented @Target(value={ANNOTATION_TYPE,TYPE,FIELD,METHOD,PARAMETER}) @Retention(value=RUNTIME) public @interface ObfuscatePortion
Obfuscator.portion()
.Modifier and Type | Optional Element and Description |
---|---|
int |
atLeastFromEnd
The minimum number of characters from the end that need to be obfuscated.
|
int |
atLeastFromStart
The minimum number of characters from the start that need to be obfuscated.
|
int |
fixedTotalLength
The fixed total length to use for obfuscated contents, or a negative value to use the actual length.
|
int |
keepAtEnd
The number of characters to skip at the end.
|
int |
keepAtStart
The number of characters to skip at the start.
|
char |
maskChar
The character to replace with.
|
public abstract int keepAtStart
public abstract int atLeastFromStart
keepAtStart()
or keepAtEnd()
.public abstract int atLeastFromEnd
keepAtStart()
or keepAtEnd()
.public abstract int fixedTotalLength
mask characters
added until this total length has been reached.
Note: when used in combination with keepAtStart()
and/or keepAtEnd()
, this total length must be at least the sum of both
other values. When used in combination with both, parts of the input may be repeated in the obfuscated content if the input's length is less
than the combined number of characters to keep.
Copyright © 2020. All rights reserved.