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

getDigest() — spring-boot Function Reference

Architecture documentation for the getDigest() function in VolumeName.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  2e0cba90_e81a_18d4_b907_d0aa0008962b["getDigest()"]
  08531c09_acf7_f21c_286e_e1967afb3e94["basedOn()"]
  08531c09_acf7_f21c_286e_e1967afb3e94 -->|calls| 2e0cba90_e81a_18d4_b907_d0aa0008962b
  d7c76d6e_8137_164a_0e4c_43a1f7c0850b["asHexString()"]
  2e0cba90_e81a_18d4_b907_d0aa0008962b -->|calls| d7c76d6e_8137_164a_0e4c_43a1f7c0850b
  style 2e0cba90_e81a_18d4_b907_d0aa0008962b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/VolumeName.java lines 118–126

	private static String getDigest(String name, int length) {
		try {
			MessageDigest digest = MessageDigest.getInstance("sha-256");
			return asHexString(digest.digest(name.getBytes(StandardCharsets.UTF_8)), length);
		}
		catch (NoSuchAlgorithmException ex) {
			throw new IllegalStateException(ex);
		}
	}

Subdomains

Called By

Frequently Asked Questions

What does getDigest() do?
getDigest() is a function in the spring-boot codebase.
What does getDigest() call?
getDigest() calls 1 function(s): asHexString.
What calls getDigest()?
getDigest() is called by 1 function(s): basedOn.

Analyze Your Own Codebase

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

Try Supermodel Free