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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

82.76
/src/main/java/com/box/sdkgen/box/ccgauth/CCGConfig.java
1
package com.box.sdkgen.box.ccgauth;
2

3
import com.box.sdkgen.box.tokenstorage.InMemoryTokenStorage;
4
import com.box.sdkgen.box.tokenstorage.TokenStorage;
5

6
public class CCGConfig {
7

8
  /** Box API key used for identifying the application the user is authenticating with */
9
  public final String clientId;
10

11
  /** Box API secret used for making auth requests. */
12
  public final String clientSecret;
13

14
  /** The ID of the Box Developer Edition enterprise. */
15
  public String enterpriseId;
16

17
  /**
18
   * The user id to authenticate. This value is not required. But if it is provided, then the user
19
   * will be auto-authenticated at the time of the first API call.
20
   */
21
  public String userId;
22

23
  /**
24
   * Object responsible for storing token. If no custom implementation provided,the token will be
25
   * stored in memory.
26
   */
27
  public TokenStorage tokenStorage;
28

29
  public CCGConfig(String clientId, String clientSecret) {
×
30
    this.clientId = clientId;
×
31
    this.clientSecret = clientSecret;
×
32
    this.tokenStorage = new InMemoryTokenStorage();
×
33
  }
×
34

35
  protected CCGConfig(Builder builder) {
1✔
36
    this.clientId = builder.clientId;
1✔
37
    this.clientSecret = builder.clientSecret;
1✔
38
    this.enterpriseId = builder.enterpriseId;
1✔
39
    this.userId = builder.userId;
1✔
40
    this.tokenStorage = builder.tokenStorage;
1✔
41
  }
1✔
42

43
  public String getClientId() {
44
    return clientId;
1✔
45
  }
46

47
  public String getClientSecret() {
48
    return clientSecret;
1✔
49
  }
50

51
  public String getEnterpriseId() {
52
    return enterpriseId;
1✔
53
  }
54

55
  public String getUserId() {
56
    return userId;
1✔
57
  }
58

59
  public TokenStorage getTokenStorage() {
60
    return tokenStorage;
1✔
61
  }
62

63
  public static class Builder {
64

65
    protected final String clientId;
66

67
    protected final String clientSecret;
68

69
    protected String enterpriseId;
70

71
    protected String userId;
72

73
    protected TokenStorage tokenStorage;
74

75
    public Builder(String clientId, String clientSecret) {
1✔
76
      this.clientId = clientId;
1✔
77
      this.clientSecret = clientSecret;
1✔
78
      this.tokenStorage = new InMemoryTokenStorage();
1✔
79
    }
1✔
80

81
    public Builder enterpriseId(String enterpriseId) {
82
      this.enterpriseId = enterpriseId;
1✔
83
      return this;
1✔
84
    }
85

86
    public Builder userId(String userId) {
87
      this.userId = userId;
1✔
88
      return this;
1✔
89
    }
90

91
    public Builder tokenStorage(TokenStorage tokenStorage) {
92
      this.tokenStorage = tokenStorage;
1✔
93
      return this;
1✔
94
    }
95

96
    public CCGConfig build() {
97
      return new CCGConfig(this);
1✔
98
    }
99
  }
100
}
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