createKeyStore() — spring-boot Function Reference
Architecture documentation for the createKeyStore() function in PemSslStoreBundle.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0b4335f0_aceb_5afa_6e79_9d25b2ef7aa3["createKeyStore()"] 6ed5551a_74dd_078d_3981_47b9dc392c95["PemSslStoreBundle()"] 6ed5551a_74dd_078d_3981_47b9dc392c95 -->|calls| 0b4335f0_aceb_5afa_6e79_9d25b2ef7aa3 f0543038_3f5b_a0be_abee_77f3d45c0ad5["getAlias()"] 0b4335f0_aceb_5afa_6e79_9d25b2ef7aa3 -->|calls| f0543038_3f5b_a0be_abee_77f3d45c0ad5 95bf3fb3_2734_4037_a4a7_b8a3d38b5356["addPrivateKey()"] 0b4335f0_aceb_5afa_6e79_9d25b2ef7aa3 -->|calls| 95bf3fb3_2734_4037_a4a7_b8a3d38b5356 351f24cd_77cf_3613_e00c_6b9390ff0202["addCertificates()"] 0b4335f0_aceb_5afa_6e79_9d25b2ef7aa3 -->|calls| 351f24cd_77cf_3613_e00c_6b9390ff0202 style 0b4335f0_aceb_5afa_6e79_9d25b2ef7aa3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/ssl/pem/PemSslStoreBundle.java lines 89–110
private static @Nullable KeyStore createKeyStore(String name, @Nullable PemSslStore pemSslStore) {
if (pemSslStore == null) {
return null;
}
try {
List<X509Certificate> certificates = pemSslStore.certificates();
Assert.state(!ObjectUtils.isEmpty(certificates), "Certificates must not be empty");
String alias = getAlias(pemSslStore);
KeyStore store = createKeyStore(pemSslStore.type());
PrivateKey privateKey = pemSslStore.privateKey();
if (privateKey != null) {
addPrivateKey(store, privateKey, alias, pemSslStore.password(), certificates);
}
else {
addCertificates(store, certificates, alias);
}
return store;
}
catch (Exception ex) {
throw new IllegalStateException("Unable to create %s store: %s".formatted(name, ex.getMessage()), ex);
}
}
Domain
Subdomains
Calls
- addCertificates()
- addPrivateKey()
- getAlias()
Called By
Source
Frequently Asked Questions
What does createKeyStore() do?
createKeyStore() is a function in the spring-boot codebase.
What does createKeyStore() call?
createKeyStore() calls 3 function(s): addCertificates, addPrivateKey, getAlias.
What calls createKeyStore()?
createKeyStore() is called by 1 function(s): PemSslStoreBundle.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free