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

asDockerConfigurationWithTokenAuth() — spring-boot Function Reference

Architecture documentation for the asDockerConfigurationWithTokenAuth() function in DockerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  2653a639_1e4f_114a_7d68_1c9851240f8c["asDockerConfigurationWithTokenAuth()"]
  9a08d1e5_3de7_caf2_d6f8_d31c58939529["createDockerConfiguration()"]
  2653a639_1e4f_114a_7d68_1c9851240f8c -->|calls| 9a08d1e5_3de7_caf2_d6f8_d31c58939529
  c8116aea_c273_d1ee_399b_ec342e2087b5["decoded()"]
  2653a639_1e4f_114a_7d68_1c9851240f8c -->|calls| c8116aea_c273_d1ee_399b_ec342e2087b5
  style 2653a639_1e4f_114a_7d68_1c9851240f8c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/DockerTests.java lines 208–226

	@Test
	void asDockerConfigurationWithTokenAuth() {
		Docker docker = new Docker();
		docker.setBuilderRegistry(new Docker.DockerRegistry("token1"));
		docker.setPublishRegistry(new Docker.DockerRegistry("token2"));
		BuilderDockerConfiguration dockerConfiguration = createDockerConfiguration(docker);
		DockerRegistryAuthentication builderRegistryAuthentication = dockerConfiguration
			.builderRegistryAuthentication();
		assertThat(builderRegistryAuthentication).isNotNull();
		String authHeader = builderRegistryAuthentication.getAuthHeader();
		assertThat(authHeader).isNotNull();
		assertThat(decoded(authHeader)).contains("\"identitytoken\" : \"token1\"");
		DockerRegistryAuthentication publishRegistryAuthentication = dockerConfiguration
			.publishRegistryAuthentication();
		assertThat(publishRegistryAuthentication).isNotNull();
		authHeader = publishRegistryAuthentication.getAuthHeader();
		assertThat(authHeader).isNotNull();
		assertThat(decoded(authHeader)).contains("\"identitytoken\" : \"token2\"");
	}

Domain

Subdomains

Frequently Asked Questions

What does asDockerConfigurationWithTokenAuth() do?
asDockerConfigurationWithTokenAuth() is a function in the spring-boot codebase.
What does asDockerConfigurationWithTokenAuth() call?
asDockerConfigurationWithTokenAuth() calls 2 function(s): createDockerConfiguration, decoded.

Analyze Your Own Codebase

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

Try Supermodel Free