What's the level of this task?
EASY
Code of Conduct
Search before creating
Mentor
Skill requirements
JAVA
Background and Goals
trustStorePassword is not a necessary parameter in connection URL. Connection can be established without it.
From the javadocs Link A password may be given to unlock the keystore (e.g. the keystore resides on a hardware token device), or to check the integrity of the keystore data. If a password is not given for integrity checking, then integrity checking is not performed.
In order to create an empty keystore, or if the keystore cannot be initialized from a stream, pass null as the stream argument.
Implementation steps
- trustStorePassword is not a necessary parameter in connection URL.
sslTrustStore.load(fis, sslTrustStorePassword != null ? sslTrustStorePassword.toCharArray() : null);
Additional context
Introduction of 2023 Kyuubi Code Contribution Program