File tree Expand file tree Collapse file tree 2 files changed +223
-234
lines changed
oauth2-platform-api/src/main/java/com/intuit/oauth2 Expand file tree Collapse file tree 2 files changed +223
-234
lines changed Original file line number Diff line number Diff line change 1717
1818/**
1919 * Config class to hold the proxy properties
20- *
21- * @author dderose
2220 *
21+ * @author dderose
2322 */
2423public class ProxyConfig {
2524
2625 private String host ;
2726 private String port ;
2827 private String username ;
2928 private String password ;
30-
29+ private String domain ;
30+
3131 private ProxyConfig (ProxyConfigBuilder builder ) {
32- this .host = builder .host ;
33- this .port = builder .port ;
34- this .username = builder .username ;
35- this .password = builder .password ;
36-
32+ this .host = builder .host ;
33+ this .port = builder .port ;
34+ this .username = builder .username ;
35+ this .password = builder .password ;
36+ this . domain = builder . domain ;
3737 }
38-
38+
3939 public String getHost () {
4040 return host ;
4141 }
@@ -52,33 +52,43 @@ public String getPassword() {
5252 return password ;
5353 }
5454
55+ public String getDomain () {
56+ return domain ;
57+ }
58+
5559 public static class ProxyConfigBuilder {
56-
60+
5761 private String host ;
5862 private String port ;
5963 private String username ;
6064 private String password ;
65+ private String domain ;
6166
6267 public ProxyConfigBuilder (String host , String port ) {
6368 this .host = host ;
6469 this .port = port ;
6570 }
66-
71+
6772 public ProxyConfigBuilder username (String username ) {
6873 this .username = username ;
6974 return this ;
7075 }
71-
76+
7277 public ProxyConfigBuilder password (String password ) {
7378 this .password = password ;
7479 return this ;
7580 }
7681
82+ public ProxyConfigBuilder domain (String domain ) {
83+ this .domain = domain ;
84+ return this ;
85+ }
86+
7787 public ProxyConfig buildConfig () {
7888 return new ProxyConfig (this );
7989 }
80-
90+
8191 }
8292
83-
93+
8494}
You can’t perform that action at this time.
0 commit comments