-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthConfig.java
More file actions
106 lines (85 loc) · 2.58 KB
/
AuthConfig.java
File metadata and controls
106 lines (85 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package de.gesellix.docker.authentication;
import java.util.Objects;
public class AuthConfig {
public static final AuthConfig EMPTY_AUTH_CONFIG = new AuthConfig();
private String username;
private String password;
private String auth;
/**
* Email is an optional value associated with the username.
*
* @deprecated This field is deprecated and will be removed in a later version of docker.
*/
@Deprecated
private String email;
private String serveraddress;
private String identitytoken;
private String registrytoken;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getAuth() {
return auth;
}
public void setAuth(String auth) {
this.auth = auth;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getServeraddress() {
return serveraddress;
}
public void setServeraddress(String serveraddress) {
this.serveraddress = serveraddress;
}
public String getIdentitytoken() {
return identitytoken;
}
public void setIdentitytoken(String identitytoken) {
this.identitytoken = identitytoken;
}
public String getRegistrytoken() {
return registrytoken;
}
public void setRegistrytoken(String registrytoken) {
this.registrytoken = registrytoken;
}
@Override
public boolean equals(Object o) {
if (this == o) {return true;}
if (o == null || getClass() != o.getClass()) {return false;}
AuthConfig that = (AuthConfig) o;
return Objects.equals(username, that.username) && Objects.equals(password, that.password) && Objects.equals(auth, that.auth) &&
Objects.equals(email, that.email) && Objects.equals(serveraddress, that.serveraddress) && Objects.equals(identitytoken, that.identitytoken) &&
Objects.equals(registrytoken, that.registrytoken);
}
@Override
public int hashCode() {
return Objects.hash(username, password, auth, email, serveraddress, identitytoken, registrytoken);
}
@Override
public String toString() {
return "AuthConfig{" +
"username='" + username + '\'' +
", password=_redacted_'" + '\'' +
", auth=_redacted_'" + '\'' +
", email='" + email + '\'' +
", serveraddress='" + serveraddress + '\'' +
", identitytoken=_redacted_'" + '\'' +
", registrytoken=_redacted_'" + '\'' +
'}';
}
}