Skip to content

Commit 2d05387

Browse files
committed
Responce may contains token.
1 parent 3838e9d commit 2d05387

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/main/java/com/github/dockerjava/api/model/AuthResponse.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,39 @@
33
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
44
import com.fasterxml.jackson.annotation.JsonProperty;
55

6+
import javax.annotation.CheckForNull;
7+
import javax.annotation.Nonnull;
68
import java.io.Serializable;
79

810
@JsonIgnoreProperties(ignoreUnknown = true)
911
public class AuthResponse implements Serializable {
1012
private static final long serialVersionUID = 1L;
1113

14+
/**
15+
* @since 1.23
16+
*/
1217
@JsonProperty("Status")
1318
private String status;
1419

20+
/**
21+
* @since 1.23
22+
*/
23+
@JsonProperty("IdentityToken")
24+
private String identityToken;
25+
26+
/**
27+
* @see #status
28+
*/
29+
@Nonnull
1530
public String getStatus() {
1631
return status;
1732
}
33+
34+
/**
35+
* @see #identityToken
36+
*/
37+
@CheckForNull
38+
public String getIdentityToken() {
39+
return identityToken;
40+
}
1841
}

0 commit comments

Comments
 (0)