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

getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat() — spring-boot Function Reference

Architecture documentation for the getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat() function in DockerRegistryConfigAuthenticationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c93decc0_da43_b353_07be_4c7f18671c62["getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat()"]
  c3e7f0d3_50c7_ae54_85ad_da5e677154d9["toString()"]
  c93decc0_da43_b353_07be_4c7f18671c62 -->|calls| c3e7f0d3_50c7_ae54_85ad_da5e677154d9
  56c6a94a_906f_bea5_18c0_207cf050ae68["of()"]
  c93decc0_da43_b353_07be_4c7f18671c62 -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68
  89d1cf4e_05c3_cecb_b45b_6bb19b354798["getAuthHeader()"]
  c93decc0_da43_b353_07be_4c7f18671c62 -->|calls| 89d1cf4e_05c3_cecb_b45b_6bb19b354798
  8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e["decode()"]
  c93decc0_da43_b353_07be_4c7f18671c62 -->|calls| 8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e
  style c93decc0_da43_b353_07be_4c7f18671c62 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerRegistryConfigAuthenticationTests.java lines 136–156

	@WithResource(name = "config.json", content = """
			{
			  "auths": {
				"https://my-registry.example.com": {
				  "auth": "Y3VzdG9tVXNlcjpjdXN0b21QYXNz"
				}
			  }
			}
			""")
	@Test
	void getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat(@ResourcesRoot Path directory) {
		this.environment.put("DOCKER_CONFIG", directory.toString());
		ImageReference imageReference = ImageReference.of("my-registry.example.com/ubuntu:latest");
		String authHeader = getAuthHeader(imageReference);
		assertThat(authHeader).isNotNull();
		assertThat(decode(authHeader)).hasSize(4)
			.containsEntry("serveraddress", "https://my-registry.example.com")
			.containsEntry("username", "customUser")
			.containsEntry("password", "customPass")
			.containsEntry("email", null);
	}

Subdomains

Frequently Asked Questions

What does getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat() do?
getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat() is a function in the spring-boot codebase.
What does getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat() call?
getAuthHeaderWhenAuthForCustomDomainWithLegacyFormat() calls 4 function(s): decode, getAuthHeader, of, toString.

Analyze Your Own Codebase

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

Try Supermodel Free