public final class PropertiesObfuscator extends Object
Properties objects so that some or all of their values are obfuscated when their
toString(), list(PrintStream) or
list(PrintWriter) method is called.| Modifier and Type | Class and Description |
|---|---|
static class |
PropertiesObfuscator.Builder
A builder for
PropertiesObfuscators. |
| Modifier and Type | Method and Description |
|---|---|
static PropertiesObfuscator.Builder |
builder()
Returns a builder that will create
PropertiesObfuscators. |
boolean |
equals(Object o) |
int |
hashCode() |
Properties |
obfuscateProperties(Properties properties)
Obfuscates a
Properties object. |
String |
toString() |
public Properties obfuscateProperties(Properties properties)
Properties object.
The result will be a Properties object that will behave exactly the same as the given Properties object, except it will
obfuscate each value when its toString(), list(PrintStream) or
list(PrintWriter) method is called.
Note that the result is not serializable.
properties - The Properties object to obfuscate.Properties wrapper around the given Properties object.NullPointerException - If the given Properties object is null.public static PropertiesObfuscator.Builder builder()
PropertiesObfuscators.PropertiesObfuscators.Copyright © 2020–2023. All rights reserved.