createKeyStore() — spring-boot Function Reference
Architecture documentation for the createKeyStore() function in JksSslStoreBundle.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7["createKeyStore()"] 4e6af648_6688_a51b_9689_8570f317cf4b["JksSslStoreBundle()"] 4e6af648_6688_a51b_9689_8570f317cf4b -->|calls| 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7 2a7af650_24e7_4834_2843_909d98714d86["getKeyStoreInstance()"] 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7 -->|calls| 2a7af650_24e7_4834_2843_909d98714d86 938a71e4_9e70_4f8b_1441_2bb8488c9578["isHardwareKeystoreType()"] 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7 -->|calls| 938a71e4_9e70_4f8b_1441_2bb8488c9578 64cb4241_db9f_af93_4653_34b760736f12["loadHardwareKeyStore()"] 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7 -->|calls| 64cb4241_db9f_af93_4653_34b760736f12 af603f20_f717_e927_d5c1_b4e3034da10b["loadKeyStore()"] 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7 -->|calls| af603f20_f717_e927_d5c1_b4e3034da10b style 9c4eadbb_67b7_5612_1f2a_c19203e4c4f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/ssl/jks/JksSslStoreBundle.java lines 96–116
private @Nullable KeyStore createKeyStore(String name, @Nullable JksSslStoreDetails details) {
if (details == null || details.isEmpty()) {
return null;
}
try {
String type = (!StringUtils.hasText(details.type())) ? KeyStore.getDefaultType() : details.type();
char[] password = (details.password() != null) ? details.password().toCharArray() : null;
String location = details.location();
KeyStore store = getKeyStoreInstance(type, details.provider());
if (isHardwareKeystoreType(type)) {
loadHardwareKeyStore(store, location, password);
}
else {
loadKeyStore(store, location, password);
}
return store;
}
catch (Exception ex) {
throw new IllegalStateException("Unable to create %s store: %s".formatted(name, ex.getMessage()), ex);
}
}
Domain
Subdomains
Calls
- getKeyStoreInstance()
- isHardwareKeystoreType()
- loadHardwareKeyStore()
- loadKeyStore()
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 4 function(s): getKeyStoreInstance, isHardwareKeystoreType, loadHardwareKeyStore, loadKeyStore.
What calls createKeyStore()?
createKeyStore() is called by 1 function(s): JksSslStoreBundle.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free