• 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

0.0
/src/main/java/com/box/sdkgen/managers/authorization/AuthorizeUserQueryParams.java
1
package com.box.sdkgen.managers.authorization;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4

5
public class AuthorizeUserQueryParams {
6

7
  /** The type of response we'd like to receive. */
8
  public final EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType;
9

10
  /**
11
   * The Client ID of the application that is requesting to authenticate the user. To get the Client
12
   * ID for your application, log in to your Box developer console and click the **Edit
13
   * Application** link for the application you're working with. In the OAuth 2.0 Parameters section
14
   * of the configuration page, find the item labelled `client_id`. The text of that item is your
15
   * application's Client ID.
16
   */
17
  public final String clientId;
18

19
  /**
20
   * The URI to which Box redirects the browser after the user has granted or denied the application
21
   * permission. This URI match one of the redirect URIs in the configuration of your application.
22
   * It must be a valid HTTPS URI and it needs to be able to handle the redirection to complete the
23
   * next step in the OAuth 2.0 flow. Although this parameter is optional, it must be a part of the
24
   * authorization URL if you configured multiple redirect URIs for the application in the developer
25
   * console. A missing parameter causes a `redirect_uri_missing` error after the user grants
26
   * application access.
27
   */
28
  public String redirectUri;
29

30
  /**
31
   * A custom string of your choice. Box will pass the same string to the redirect URL when
32
   * authentication is complete. This parameter can be used to identify a user on redirect, as well
33
   * as protect against hijacked sessions and other exploits.
34
   */
35
  public String state;
36

37
  /**
38
   * A space-separated list of application scopes you'd like to authenticate the user for. This
39
   * defaults to all the scopes configured for the application in its configuration page.
40
   */
41
  public String scope;
42

43
  public AuthorizeUserQueryParams(
44
      AuthorizeUserQueryParamsResponseTypeField responseType, String clientId) {
×
45
    this.responseType = new EnumWrapper<AuthorizeUserQueryParamsResponseTypeField>(responseType);
×
46
    this.clientId = clientId;
×
47
  }
×
48

49
  public AuthorizeUserQueryParams(
50
      EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType, String clientId) {
×
51
    this.responseType = responseType;
×
52
    this.clientId = clientId;
×
53
  }
×
54

55
  protected AuthorizeUserQueryParams(Builder builder) {
×
56
    this.responseType = builder.responseType;
×
57
    this.clientId = builder.clientId;
×
58
    this.redirectUri = builder.redirectUri;
×
59
    this.state = builder.state;
×
60
    this.scope = builder.scope;
×
61
  }
×
62

63
  public EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> getResponseType() {
64
    return responseType;
×
65
  }
66

67
  public String getClientId() {
68
    return clientId;
×
69
  }
70

71
  public String getRedirectUri() {
72
    return redirectUri;
×
73
  }
74

75
  public String getState() {
76
    return state;
×
77
  }
78

79
  public String getScope() {
80
    return scope;
×
81
  }
82

83
  public static class Builder {
84

85
    protected final EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType;
86

87
    protected final String clientId;
88

89
    protected String redirectUri;
90

91
    protected String state;
92

93
    protected String scope;
94

95
    public Builder(AuthorizeUserQueryParamsResponseTypeField responseType, String clientId) {
×
96
      this.responseType = new EnumWrapper<AuthorizeUserQueryParamsResponseTypeField>(responseType);
×
97
      this.clientId = clientId;
×
98
    }
×
99

100
    public Builder(
101
        EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType, String clientId) {
×
102
      this.responseType = responseType;
×
103
      this.clientId = clientId;
×
104
    }
×
105

106
    public Builder redirectUri(String redirectUri) {
107
      this.redirectUri = redirectUri;
×
108
      return this;
×
109
    }
110

111
    public Builder state(String state) {
112
      this.state = state;
×
113
      return this;
×
114
    }
115

116
    public Builder scope(String scope) {
117
      this.scope = scope;
×
118
      return this;
×
119
    }
120

121
    public AuthorizeUserQueryParams build() {
122
      return new AuthorizeUserQueryParams(this);
×
123
    }
124
  }
125
}
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