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

box / box-java-sdk / #5925

17 Dec 2025 05:03PM UTC coverage: 35.453% (-0.1%) from 35.558%
#5925

push

github

web-flow
fix: add taxonomy to Metadata Field (read) definition (box/box-openapi#572) (#1644)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

62 existing lines in 13 files now uncovered.

18901 of 53313 relevant lines covered (35.45%)

0.35 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

© 2025 Coveralls, Inc