Home / Class/ BundleInfo Class — spring-boot Architecture

BundleInfo Class — spring-boot Architecture

Architecture documentation for the BundleInfo class in SslInfo.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/info/SslInfo.java lines 101–142

	public final class BundleInfo {

		private final String name;

		private final List<CertificateChainInfo> certificateChains;

		private final List<CertificateChainInfo> trustStoreCertificateChains;

		private BundleInfo(String name, SslBundle sslBundle) {
			this.name = name;
			this.certificateChains = extractCertificateChains(sslBundle.getStores().getKeyStore());
			this.trustStoreCertificateChains = extractCertificateChains(sslBundle.getStores().getTrustStore());
		}

		private List<CertificateChainInfo> extractCertificateChains(@Nullable KeyStore keyStore) {
			if (keyStore == null) {
				return Collections.emptyList();
			}
			try {
				return Collections.list(keyStore.aliases())
					.stream()
					.map((alias) -> new CertificateChainInfo(keyStore, alias))
					.toList();
			}
			catch (KeyStoreException ex) {
				return Collections.emptyList();
			}
		}

		public String getName() {
			return this.name;
		}

		public List<CertificateChainInfo> getCertificateChains() {
			return this.certificateChains;
		}

		public List<CertificateChainInfo> getTrustStoreCertificateChains() {
			return this.trustStoreCertificateChains;
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free