RFR: 8329251: Print custom truststore/ keystore name [v13]

Prasadrao Koppula pkoppula at openjdk.org
Fri Dec 6 10:57:44 UTC 2024


On Thu, 5 Dec 2024 14:11:29 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Would it possible to list down the API entry points where you want map the InputStream back to its source? I assume methods such as KeyStore.getInstance(File file, ..) are not a concern, is it the load(InputStream,password) method?

We currently do not have any mechanism to map the InputStream back to its source. Instead, the InputStream is stored, and the caller methods access it indirectly via the KeyStore object.

> I'm puzzled why this PR is only concerned with FIS as there many ways to get an input stream to a file or other source that won't be handled.

In this PR, we are specifically focusing on FileInputStream and handling the inner object from FilterInputStream. This approach is based on its common usage pattern. Additionally, I have not encountered any use cases where the keystore path is provided via other types of InputStreams.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20414#issuecomment-2522843118


More information about the core-libs-dev mailing list