• 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

24.0
/src/main/java/com/box/sdkgen/box/oauth/GetAuthorizeUrlOptions.java
1
package com.box.sdkgen.box.oauth;
2

3
/** Options of getAuthorizeUrl method */
4
public class GetAuthorizeUrlOptions {
5

6
  /** Box API key used for identifying the application the user is authenticating with */
7
  public String clientId;
8

9
  /**
10
   * The URI to which Box redirects the browser after the user has granted or denied the application
11
   * permission. This URI match one of the redirect URIs in the configuration of your application.
12
   */
13
  public String redirectUri;
14

15
  /** The type of response we would like to receive. */
16
  public String responseType;
17

18
  /**
19
   * A custom string of your choice. Box will pass the same string to the redirect URL when
20
   * authentication is complete. This parameter can be used to identify a user on redirect, as well
21
   * as protect against hijacked sessions and other exploits.
22
   */
23
  public String state;
24

25
  /**
26
   * A space-separated list of application scopes you'd like to authenticate the user for. This
27
   * defaults to all the scopes configured for the application in its configuration page.
28
   */
29
  public String scope;
30

31
  public GetAuthorizeUrlOptions() {}
1✔
32

33
  protected GetAuthorizeUrlOptions(Builder builder) {
×
34
    this.clientId = builder.clientId;
×
35
    this.redirectUri = builder.redirectUri;
×
36
    this.responseType = builder.responseType;
×
37
    this.state = builder.state;
×
38
    this.scope = builder.scope;
×
39
  }
×
40

41
  public String getClientId() {
42
    return clientId;
1✔
43
  }
44

45
  public String getRedirectUri() {
46
    return redirectUri;
1✔
47
  }
48

49
  public String getResponseType() {
50
    return responseType;
1✔
51
  }
52

53
  public String getState() {
54
    return state;
1✔
55
  }
56

57
  public String getScope() {
58
    return scope;
1✔
59
  }
60

61
  public static class Builder {
×
62

63
    protected String clientId;
64

65
    protected String redirectUri;
66

67
    protected String responseType;
68

69
    protected String state;
70

71
    protected String scope;
72

73
    public Builder clientId(String clientId) {
74
      this.clientId = clientId;
×
75
      return this;
×
76
    }
77

78
    public Builder redirectUri(String redirectUri) {
79
      this.redirectUri = redirectUri;
×
80
      return this;
×
81
    }
82

83
    public Builder responseType(String responseType) {
84
      this.responseType = responseType;
×
85
      return this;
×
86
    }
87

88
    public Builder state(String state) {
89
      this.state = state;
×
90
      return this;
×
91
    }
92

93
    public Builder scope(String scope) {
94
      this.scope = scope;
×
95
      return this;
×
96
    }
97

98
    public GetAuthorizeUrlOptions build() {
99
      return new GetAuthorizeUrlOptions(this);
×
100
    }
101
  }
102
}
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