Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class HttpLogObfuscator

On this page

  • io.realm.mongodb.log.obfuscator
  • Constructors
  • Method Summary
  • Inherited Methods
  • Constructor Detail
  • Method Detail
  • equals
  • hashCode
  • obfuscate
java.lang.Object
io.realm.mongodb.log.obfuscator.HttpLogObfuscator

The HttpLogObfuscator keeps sensitive information from being displayed in Logcat.

Constructor and Description

Constructor for creating an HTTP log obfuscator.

Modifier and Type
Method and Description
public boolean
public int
public String

Obfuscates a logcat entry or not depending on whether the request being sent matches the specified feature.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

Constructor for creating an HTTP log obfuscator.

Parameters

  • 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 boolean equals (
)

Overrides

equals in class Object

public int hashCode ()

Overrides

hashCode in class Object

Obfuscates a logcat entry or not depending on whether the request being sent matches the specified feature. If it doesn't, the logcat entry will be returned unmodified.

Parameters

  • urlSegments - the URL segments of the request to be sent.

  • input - the original logcat entry.

Returns

the logcat entry to be shown in the logcat.

Back

io.realm.mongodb.log.obfuscator