| Modifier and Type | Class and Description |
|---|---|
static class |
JSONObfuscator.PropertyConfigurer
An object that can be used to configure a property that should be obfuscated.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObfuscator.Builder |
JSONObfuscator.Builder.allByDefault()
Indicates that by default properties will be obfuscated if they are JSON objects or arrays (default).
|
static JSONObfuscator.Builder |
JSONObfuscator.builder()
Returns a builder that will create
JSONObfuscators. |
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.caseInsensitiveByDefault()
Sets the default case sensitivity for new properties to
CaseSensitivity.CASE_INSENSITIVE. |
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.caseSensitiveByDefault()
Sets the default case sensitivity for new properties to
CaseSensitivity.CASE_SENSITIVE. |
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.excludeArraysByDefault()
Indicates that by default properties will not be obfuscated if they are JSON arrays.
|
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.excludeObjectsByDefault()
Indicates that by default properties will not be obfuscated if they are JSON objects.
|
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.includeArraysByDefault()
Indicates that by default properties will be obfuscated if they are JSON arrays (default).
|
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.includeObjectsByDefault()
Indicates that by default properties will be obfuscated if they are JSON objects (default).
|
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.produceValidJSON()
If called, obfuscation produces valid JSON, provided the input is valid JSON.
|
JSONObfuscator.Builder |
JSONObfuscator.Builder.scalarsOnlyByDefault()
Indicates that by default properties will not be obfuscated if they are JSON objects or arrays.
|
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.withMalformedJSONWarning(String warning)
Sets the warning to include if a
JsonParsingException is thrown. |
abstract JSONObfuscator.Builder |
JSONObfuscator.Builder.withPrettyPrinting(boolean prettyPrint)
Sets whether or not to pretty-print obfuscated JSON.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
JSONObfuscator.Builder.transform(Function<? super JSONObfuscator.Builder,? extends R> f)
This method allows the application of a function to this builder.
|
Copyright © 2020–2021. All rights reserved.