public class HttpLogObfuscator extends Object
Constructor and Description |
---|
HttpLogObfuscator(String feature,
Map<String,RegexPatternObfuscator> patternObfuscatorMap)
Constructor for creating an HTTP log obfuscator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
obfuscate(List<String> urlSegments,
String input)
Obfuscates a logcat entry or not depending on whether the request being sent matches the
specified feature.
|
public HttpLogObfuscator(String feature, Map<String,RegexPatternObfuscator> patternObfuscatorMap)
feature
- the feature to obfuscate, e.g. "providers" for login requests -
see io.realm.internal.network.LoggingInterceptor
.patternObfuscatorMap
- Map
of keys subject to being obfuscated and
RegexPatternObfuscator
s used to determine which
obfuscator has to be used for the given feature.public String obfuscate(List<String> urlSegments, String input)
urlSegments
- the URL segments of the request to be sent.input
- the original logcat entry.