Home / Function/ getRegistryAuthentication() — spring-boot Function Reference

getRegistryAuthentication() — spring-boot Function Reference

Architecture documentation for the getRegistryAuthentication() function in DockerSpec.java from the spring-boot codebase.

Function java Archiving LauncherConfig calls 8 called by 2

Entity Profile

Dependency Diagram

graph TD
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b["getRegistryAuthentication()"]
  97a7385b_eac3_74f8_bd61_4334bead569b["customizeBuilderAuthentication()"]
  97a7385b_eac3_74f8_bd61_4334bead569b -->|calls| 71bdb33d_ae38_9629_73f4_c6f57fe22b1b
  033660d9_2957_4da0_e119_f114b52c44ff["customizePublishAuthentication()"]
  033660d9_2957_4da0_e119_f114b52c44ff -->|calls| 71bdb33d_ae38_9629_73f4_c6f57fe22b1b
  3f64c617_6bc5_0d3b_322c_afb96fcf0497["hasEmptyAuth()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| 3f64c617_6bc5_0d3b_322c_afb96fcf0497
  5dfded45_ea8b_0f74_4253_18e6dd604b64["hasTokenAuth()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| 5dfded45_ea8b_0f74_4253_18e6dd604b64
  e05cbe13_db23_7d46_15fc_48229288370e["hasUserAuth()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| e05cbe13_db23_7d46_15fc_48229288370e
  d6125b66_2013_e3a0_d12a_8c3c2408419e["getToken()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| d6125b66_2013_e3a0_d12a_8c3c2408419e
  3507a9e7_1d5e_9d6c_72a8_e0e064817f55["getUsername()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| 3507a9e7_1d5e_9d6c_72a8_e0e064817f55
  70703ddc_76f3_0b3b_5c3c_39218262a666["getPassword()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| 70703ddc_76f3_0b3b_5c3c_39218262a666
  1ef96c22_0864_e1f3_51f7_6e3a226c621d["getUrl()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| 1ef96c22_0864_e1f3_51f7_6e3a226c621d
  e371c84b_2715_6437_a2b7_8e812d13d2e3["getEmail()"]
  71bdb33d_ae38_9629_73f4_c6f57fe22b1b -->|calls| e371c84b_2715_6437_a2b7_8e812d13d2e3
  style 71bdb33d_ae38_9629_73f4_c6f57fe22b1b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/DockerSpec.java lines 159–173

	private DockerRegistryAuthentication getRegistryAuthentication(String type, @Nullable DockerRegistrySpec registry,
			DockerRegistryAuthentication fallback) {
		if (registry == null || registry.hasEmptyAuth()) {
			return fallback;
		}
		if (registry.hasTokenAuth() && !registry.hasUserAuth()) {
			return DockerRegistryAuthentication.token(registry.getToken().get());
		}
		if (registry.hasUserAuth() && !registry.hasTokenAuth()) {
			return DockerRegistryAuthentication.user(registry.getUsername().get(), registry.getPassword().get(),
					registry.getUrl().getOrNull(), registry.getEmail().getOrNull());
		}
		throw new GradleException("Invalid Docker " + type
				+ " registry configuration, either token or username/password must be provided");
	}

Domain

Subdomains

Frequently Asked Questions

What does getRegistryAuthentication() do?
getRegistryAuthentication() is a function in the spring-boot codebase.
What does getRegistryAuthentication() call?
getRegistryAuthentication() calls 8 function(s): getEmail, getPassword, getToken, getUrl, getUsername, hasEmptyAuth, hasTokenAuth, hasUserAuth.
What calls getRegistryAuthentication()?
getRegistryAuthentication() is called by 2 function(s): customizeBuilderAuthentication, customizePublishAuthentication.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free