DockerRegistry Class — spring-boot Architecture
Architecture documentation for the DockerRegistry class in Docker.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/Docker.java lines 218–318
public static class DockerRegistry {
private @Nullable String username;
private @Nullable String password;
private @Nullable String url;
private @Nullable String email;
private @Nullable String token;
public DockerRegistry() {
}
public DockerRegistry(@Nullable String username, @Nullable String password, @Nullable String url,
@Nullable String email) {
this.username = username;
this.password = password;
this.url = url;
this.email = email;
}
public DockerRegistry(String token) {
this.token = token;
}
/**
* The username that will be used for user authentication to the registry.
* @return the username
*/
public @Nullable String getUsername() {
return this.username;
}
void setUsername(@Nullable String username) {
this.username = username;
}
/**
* The password that will be used for user authentication to the registry.
* @return the password
*/
public @Nullable String getPassword() {
return this.password;
}
void setPassword(@Nullable String password) {
this.password = password;
}
/**
* The email address that will be used for user authentication to the registry.
* @return the email address
*/
public @Nullable String getEmail() {
return this.email;
}
void setEmail(@Nullable String email) {
this.email = email;
}
/**
* The URL of the registry.
* @return the registry URL
*/
@Nullable String getUrl() {
return this.url;
}
void setUrl(@Nullable String url) {
this.url = url;
}
/**
* The token that will be used for token authentication to the registry.
* @return the authentication token
*/
public @Nullable String getToken() {
return this.token;
}
void setToken(@Nullable String token) {
this.token = token;
}
boolean isEmpty() {
return this.username == null && this.password == null && this.url == null && this.email == null
&& this.token == null;
}
boolean hasTokenAuth() {
return this.token != null;
}
boolean hasUserAuth() {
return this.username != null && this.password != null;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free