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

asHash() — spring-boot Function Reference

Architecture documentation for the asHash() function in DockerConfigurationMetadata.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  83fb9165_0ebf_e1b8_0897_15b25f53b630["asHash()"]
  be91c0a6_279d_c127_7e4a_1f3bf82c5742["createDockerContext()"]
  be91c0a6_279d_c127_7e4a_1f3bf82c5742 -->|calls| 83fb9165_0ebf_e1b8_0897_15b25f53b630
  403fa7ea_bc3d_2449_e5c8_35453034dc79["of()"]
  83fb9165_0ebf_e1b8_0897_15b25f53b630 -->|calls| 403fa7ea_bc3d_2449_e5c8_35453034dc79
  style 83fb9165_0ebf_e1b8_0897_15b25f53b630 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerConfigurationMetadata.java lines 150–159

	private static String asHash(String currentContext) {
		try {
			MessageDigest digest = MessageDigest.getInstance("SHA-256");
			byte[] hash = digest.digest(currentContext.getBytes(StandardCharsets.UTF_8));
			return HexFormat.of().formatHex(hash);
		}
		catch (NoSuchAlgorithmException ex) {
			throw new IllegalStateException("SHA-256 is not available", ex);
		}
	}

Subdomains

Calls

Frequently Asked Questions

What does asHash() do?
asHash() is a function in the spring-boot codebase.
What does asHash() call?
asHash() calls 1 function(s): of.
What calls asHash()?
asHash() is called by 1 function(s): createDockerContext.

Analyze Your Own Codebase

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

Try Supermodel Free