• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #4842

15 Sep 2025 09:55AM UTC coverage: 37.163% (-0.1%) from 37.307%
#4842

push

github

web-flow
feat: Add missing webhook events (box/box-openapi#554) (#1412)

8 of 12 new or added lines in 3 files covered. (66.67%)

74 existing lines in 11 files now uncovered.

18446 of 49635 relevant lines covered (37.16%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/src/main/java/com/box/sdkgen/internal/logging/DataSanitizer.java
1
package com.box.sdkgen.internal.logging;
2

3
import static com.box.sdkgen.internal.utils.UtilsManager.entryOf;
4
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
5
import static com.box.sdkgen.internal.utils.UtilsManager.sanitizeMap;
6
import static com.box.sdkgen.serialization.json.JsonManager.sanitizeSerializedData;
7

8
import com.fasterxml.jackson.databind.JsonNode;
9
import java.util.Map;
10

11
public class DataSanitizer {
12

13
  public final Map<String, String> keysToSanitize;
14

15
  public DataSanitizer() {
1✔
16
    this.keysToSanitize =
1✔
17
        mapOf(
1✔
18
            entryOf("authorization", ""),
1✔
19
            entryOf("access_token", ""),
1✔
20
            entryOf("refresh_token", ""),
1✔
21
            entryOf("subject_token", ""),
1✔
22
            entryOf("token", ""),
1✔
23
            entryOf("client_id", ""),
1✔
24
            entryOf("client_secret", ""),
1✔
25
            entryOf("shared_link", ""),
1✔
26
            entryOf("download_url", ""),
1✔
27
            entryOf("jwt_private_key", ""),
1✔
28
            entryOf("jwt_private_key_passphrase", ""),
1✔
29
            entryOf("password", ""));
1✔
30
  }
1✔
31

32
  public Map<String, String> sanitizeHeaders(Map<String, String> headers) {
UNCOV
33
    return sanitizeMap(headers, this.keysToSanitize);
×
34
  }
35

36
  public JsonNode sanitizeBody(JsonNode body) {
UNCOV
37
    return sanitizeSerializedData(body, this.keysToSanitize);
×
38
  }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc