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

bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() — spring-boot Function Reference

Architecture documentation for the bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() function in SslInfoTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  cfdc167b_c621_921d_65e7_e082693c40e8["bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo()"]
  41cd76d7_48b9_fa25_7f50_c038acb01cb4["DefaultSslBundleRegistry()"]
  cfdc167b_c621_921d_65e7_e082693c40e8 -->|calls| 41cd76d7_48b9_fa25_7f50_c038acb01cb4
  5da1fb80_a713_efc5_2f30_14955e4a7d76["forLocation()"]
  cfdc167b_c621_921d_65e7_e082693c40e8 -->|calls| 5da1fb80_a713_efc5_2f30_14955e4a7d76
  ab324ff6_8808_1196_6192_d2674b03537f["withPassword()"]
  cfdc167b_c621_921d_65e7_e082693c40e8 -->|calls| ab324ff6_8808_1196_6192_d2674b03537f
  4e6af648_6688_a51b_9689_8570f317cf4b["JksSslStoreBundle()"]
  cfdc167b_c621_921d_65e7_e082693c40e8 -->|calls| 4e6af648_6688_a51b_9689_8570f317cf4b
  57be9bb5_de42_ee29_843b_d909abc58185["registerBundle()"]
  cfdc167b_c621_921d_65e7_e082693c40e8 -->|calls| 57be9bb5_de42_ee29_843b_d909abc58185
  style cfdc167b_c621_921d_65e7_e082693c40e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/info/SslInfoTests.java lines 213–226

	@Test
	@WithPackageResources("test.p12")
	void bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() {
		DefaultSslBundleRegistry sslBundleRegistry = new DefaultSslBundleRegistry();
		JksSslStoreDetails storeDetails = JksSslStoreDetails.forLocation("classpath:test.p12").withPassword("secret");
		SslStoreBundle sslStoreBundle = new JksSslStoreBundle(storeDetails, storeDetails);
		sslBundleRegistry.registerBundle("test-both", SslBundle.of(sslStoreBundle));
		SslInfo sslInfo = new SslInfo(sslBundleRegistry, CLOCK);
		assertThat(sslInfo.getBundles()).hasSize(1);
		BundleInfo bundle = sslInfo.getBundles().get(0);
		assertThat(bundle.getName()).isEqualTo("test-both");
		assertThat(bundle.getCertificateChains()).hasSize(4);
		assertThat(bundle.getTrustStoreCertificateChains()).hasSize(4);
	}

Domain

Subdomains

Frequently Asked Questions

What does bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() do?
bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() is a function in the spring-boot codebase.
What does bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() call?
bothKeyStoreAndTrustStoreCertificatesShouldProvideSslInfo() calls 5 function(s): DefaultSslBundleRegistry, JksSslStoreBundle, forLocation, registerBundle, withPassword.

Analyze Your Own Codebase

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

Try Supermodel Free