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

ofSha256Digest() — spring-boot Function Reference

Architecture documentation for the ofSha256Digest() function in LayerIdTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d137e5f5_7909_2c54_f8da_453feaa64c4c["ofSha256Digest()"]
  584c1afb_4aec_aa89_6115_5251286fc388["ofSha256DigestWithZeroPadding()"]
  584c1afb_4aec_aa89_6115_5251286fc388 -->|calls| d137e5f5_7909_2c54_f8da_453feaa64c4c
  1564e682_03b2_1900_fd18_01376d2ae09b["ofSha256DigestWhenNullThrowsException()"]
  1564e682_03b2_1900_fd18_01376d2ae09b -->|calls| d137e5f5_7909_2c54_f8da_453feaa64c4c
  ec3f5665_9e31_112f_7e65_673f223b3b6b["ofSha256DigestWhenWrongLengthThrowsException()"]
  ec3f5665_9e31_112f_7e65_673f223b3b6b -->|calls| d137e5f5_7909_2c54_f8da_453feaa64c4c
  style d137e5f5_7909_2c54_f8da_453feaa64c4c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/type/LayerIdTests.java lines 64–70

	@Test
	void ofSha256Digest() throws Exception {
		MessageDigest digest = MessageDigest.getInstance("SHA-256");
		digest.update("test".getBytes(StandardCharsets.UTF_8));
		LayerId id = LayerId.ofSha256Digest(digest.digest());
		assertThat(id).hasToString("sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08");
	}

Domain

Subdomains

Called By

  • ofSha256DigestWhenNullThrowsException()
  • ofSha256DigestWhenWrongLengthThrowsException()
  • ofSha256DigestWithZeroPadding()

Frequently Asked Questions

What does ofSha256Digest() do?
ofSha256Digest() is a function in the spring-boot codebase.
What calls ofSha256Digest()?
ofSha256Digest() is called by 3 function(s): ofSha256DigestWhenNullThrowsException, ofSha256DigestWhenWrongLengthThrowsException, ofSha256DigestWithZeroPadding.

Analyze Your Own Codebase

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

Try Supermodel Free